conditional rendering page, done translation till line 258 by sanchit36 · Pull Request #176 · reactjs/hi.react.dev
Translating the conditional rendering page.
Related to #168
Review Progress
- Intro
- Conditionally returning JSX
- Conditionally returning nothing with
null
- Conditionally returning nothing with
- Conditionally including JSX
- Conditional (ternary) operator (
? :) - Logical AND operator (
&&) - Conditionally assigning JSX to a variable
- Show an icon for incomplete items with
? : - Show the item importance with
&& - Refactor a series of
? :toifand variables
- Conditional (ternary) operator (
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good work.
I have added comments till line 106
Lets get these comments fixed, post that we can start reviewing rest of the file.
Also you can refer #23 for our review process
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Awesome work with the previous fixes and thanks alot for following the review guidelines.
I have added review for rest of the file.
Once these are fixed, we can get this merged.
| </Sandpack> | ||
|
|
||
| This style works well for simple conditions, but use it in moderation. If your components get messy with too much nested conditional markup, consider extracting child components to clean things up. In React, markup is a part of your code, so you can use tools like variables and functions to tidy up complex expressions. | ||
| यह शैली साधारण परिस्थितियों के लिए अच्छी तरह से काम करती है, लेकिन इसे मॉडरेशन में उपयोग करें। यदि आपके कौम्पोनॅन्ट बहुत अधिक नेस्टेड कंडीशनल मार्कअप के साथ गड़बड़ हो जाते हैं, तो चीजों को साफ करने के लिए बाल कौम्पोनॅन्टस को निकालने पर विचार करें। React में, मार्कअप आपके कोड का एक हिस्सा है, इसलिए आप जटिल अभिव्यक्तियों को व्यवस्थित करने के लिए वेरिएबल और फ़ंक्शन जैसे टूल का उपयोग कर सकते हैं। |
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
शैली => तरीका
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Awesome work.
I have verified the full file.
Lets get this merged 🎉
Congrats @sanchit36 for landing your first PR.
You did a great job at this PR. Quality of PR was great.
Best of luck of your future contributions 👍
@arshadkazmi42 the page is not completed yet, Conditionally including JSX i have to complete it's subparts.
@sanchit36 I have already merged the PR. You can make changes in same branch. But you will have to create a new PR
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters