From 7738deacb01b4b3147e5bdb4f40d4cb76ef7385a Mon Sep 17 00:00:00 2001 From: Ashish Kamble Date: Tue, 11 Jun 2019 14:08:40 +0530 Subject: [PATCH 01/12] Update conditional-rendering.md --- content/docs/conditional-rendering.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/docs/conditional-rendering.md b/content/docs/conditional-rendering.md index 7df19bb98..d787ede47 100644 --- a/content/docs/conditional-rendering.md +++ b/content/docs/conditional-rendering.md @@ -8,7 +8,7 @@ redirect_from: - "tips/false-in-jsx.html" --- -In React, you can create distinct components that encapsulate behavior you need. Then, you can render only some of them, depending on the state of your application. +रीएक्ट में, आप अलग-अलग घटक बना सकते हैं जो आपके लिए आवश्यक व्यवहार को संक्षिप्त करते हैं। फिर, आप अपने आवेदन की स्थिति के आधार पर उनमें से कुछ को ही प्रस्तुत कर सकते हैं।. Conditional rendering in React works the same way conditions work in JavaScript. Use JavaScript operators like [`if`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/if...else) or the [conditional operator](https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Operators/Conditional_Operator) to create elements representing the current state, and let React update the UI to match them. From e5fa51827737ccc486e05a0e9e2d8b2ef8bc176e Mon Sep 17 00:00:00 2001 From: Ashish Kamble Date: Tue, 11 Jun 2019 18:15:22 +0530 Subject: [PATCH 02/12] Update conditional-rendering.md --- content/docs/conditional-rendering.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/docs/conditional-rendering.md b/content/docs/conditional-rendering.md index d787ede47..4901194dd 100644 --- a/content/docs/conditional-rendering.md +++ b/content/docs/conditional-rendering.md @@ -10,7 +10,7 @@ redirect_from: रीएक्ट में, आप अलग-अलग घटक बना सकते हैं जो आपके लिए आवश्यक व्यवहार को संक्षिप्त करते हैं। फिर, आप अपने आवेदन की स्थिति के आधार पर उनमें से कुछ को ही प्रस्तुत कर सकते हैं।. -Conditional rendering in React works the same way conditions work in JavaScript. Use JavaScript operators like [`if`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/if...else) or the [conditional operator](https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Operators/Conditional_Operator) to create elements representing the current state, and let React update the UI to match them. +कंडीशनल रेंडरिंग रियेक्ट में वैसे ही काम करता हे जैसे कंडीशंस जावास्क्रिप्ट में करते हे । Use JavaScript operators like [`if`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/if...else) or the [conditional operator](https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Operators/Conditional_Operator) to create elements representing the current state, and let React update the UI to match them. Consider these two components: From a2727e0f36587c3eefb9048f0ad01598de202b75 Mon Sep 17 00:00:00 2001 From: Ashish Kamble Date: Tue, 11 Jun 2019 18:19:23 +0530 Subject: [PATCH 03/12] Update conditional-rendering.md --- content/docs/conditional-rendering.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/docs/conditional-rendering.md b/content/docs/conditional-rendering.md index 4901194dd..37356c4e4 100644 --- a/content/docs/conditional-rendering.md +++ b/content/docs/conditional-rendering.md @@ -10,7 +10,7 @@ redirect_from: रीएक्ट में, आप अलग-अलग घटक बना सकते हैं जो आपके लिए आवश्यक व्यवहार को संक्षिप्त करते हैं। फिर, आप अपने आवेदन की स्थिति के आधार पर उनमें से कुछ को ही प्रस्तुत कर सकते हैं।. -कंडीशनल रेंडरिंग रियेक्ट में वैसे ही काम करता हे जैसे कंडीशंस जावास्क्रिप्ट में करते हे । Use JavaScript operators like [`if`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/if...else) or the [conditional operator](https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Operators/Conditional_Operator) to create elements representing the current state, and let React update the UI to match them. +कंडीशनल रेंडरिंग रियेक्ट में वैसे ही काम करता हे जैसे कंडीशंस जावास्क्रिप्ट में करते हे । जावास्क्रिप्ट ऑपरेटर्स जैसे [`if`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/if...else) और [`कंडीशनल ऑपरेटर्स `](https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Operators/Conditional_Operator) जो एलिमेंट्स बनके करंट स्टेट को रिप्रेजेंट करते हे । , and let React update the UI to match them. Consider these two components: From 0f122f9eb987b90371e97b41e48e1fd5c4a6897a Mon Sep 17 00:00:00 2001 From: Ashish Kamble Date: Fri, 14 Jun 2019 10:32:09 +0530 Subject: [PATCH 04/12] Update conditional-rendering.md --- content/docs/conditional-rendering.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/content/docs/conditional-rendering.md b/content/docs/conditional-rendering.md index 37356c4e4..703c75bc8 100644 --- a/content/docs/conditional-rendering.md +++ b/content/docs/conditional-rendering.md @@ -8,9 +8,9 @@ redirect_from: - "tips/false-in-jsx.html" --- -रीएक्ट में, आप अलग-अलग घटक बना सकते हैं जो आपके लिए आवश्यक व्यवहार को संक्षिप्त करते हैं। फिर, आप अपने आवेदन की स्थिति के आधार पर उनमें से कुछ को ही प्रस्तुत कर सकते हैं।. +React में, आप अलग-अलग कॉम्पोनेन्ट बना सकते हैं जो आपके लिए आवश्यक व्यवहार को संक्षिप्त करते हैं। फिर, आप अपने आवेदन की स्टेट के आधार पर उनमें से कुछ को ही रिप्रेजेंट कर सकते हैं।. -कंडीशनल रेंडरिंग रियेक्ट में वैसे ही काम करता हे जैसे कंडीशंस जावास्क्रिप्ट में करते हे । जावास्क्रिप्ट ऑपरेटर्स जैसे [`if`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/if...else) और [`कंडीशनल ऑपरेटर्स `](https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Operators/Conditional_Operator) जो एलिमेंट्स बनके करंट स्टेट को रिप्रेजेंट करते हे । , and let React update the UI to match them. +कंडीशनल रेंडरिंग React में वैसे ही काम करता हे जैसे कंडीशंस जावास्क्रिप्ट में करते हे । जावास्क्रिप्ट ऑपरेटर्स जैसे [`if`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/if...else) और [`कंडीशनल ऑपरेटर्स `](https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Operators/Conditional_Operator) जो एलिमेंट्स बनके करंट स्टेट को रिप्रेजेंट करते हे । , फिर React UI को अपडेट करके मैच कर देगा । Consider these two components: From 27c83c9c97d68e574ed402e1b93c8dd1dbf0a4ed Mon Sep 17 00:00:00 2001 From: Ashish Kamble Date: Thu, 20 Jun 2019 11:06:43 +0530 Subject: [PATCH 05/12] Update conditional-rendering.md --- content/docs/conditional-rendering.md | 21 ++++++++++++--------- 1 file changed, 12 insertions(+), 9 deletions(-) diff --git a/content/docs/conditional-rendering.md b/content/docs/conditional-rendering.md index 703c75bc8..0b7589907 100644 --- a/content/docs/conditional-rendering.md +++ b/content/docs/conditional-rendering.md @@ -12,7 +12,7 @@ React में, आप अलग-अलग कॉम्पोनेन्ट कंडीशनल रेंडरिंग React में वैसे ही काम करता हे जैसे कंडीशंस जावास्क्रिप्ट में करते हे । जावास्क्रिप्ट ऑपरेटर्स जैसे [`if`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/if...else) और [`कंडीशनल ऑपरेटर्स `](https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Operators/Conditional_Operator) जो एलिमेंट्स बनके करंट स्टेट को रिप्रेजेंट करते हे । , फिर React UI को अपडेट करके मैच कर देगा । -Consider these two components: +एक्साम्पल के तौर पे यह दो कॉम्पोनेन्ट देखो : ```js function UserGreeting(props) { @@ -24,7 +24,7 @@ function GuestGreeting(props) { } ``` -We'll create a `Greeting` component that displays either of these components depending on whether a user is logged in: +हम `Greeting` कॉम्पोनेन्ट बना रहे हे । अगर यूजर लॉगिन हे तभी देखेगा : ```javascript{3-7,11,12} function Greeting(props) { @@ -44,13 +44,15 @@ ReactDOM.render( [**Try it on CodePen**](https://codepen.io/gaearon/pen/ZpVxNq?editors=0011) -This example renders a different greeting depending on the value of `isLoggedIn` prop. -### Element Variables {#element-variables} +यह एक्साम्पल `isLoggedIn` प्रोप के वैल्यू के अनुसार अलग अलग ग्रीटिंग्स रेंडर करता हे -You can use variables to store elements. This can help you conditionally render a part of the component while the rest of the output doesn't change. +### एलिमेंट वेरिएबल {#element-variables} -Consider these two new components representing Logout and Login buttons: +आप एलिमेंट्स को स्टोर करने के लिए वेरिएबल्स का उसे कर सकते हो . +जिससे आपको कंडीशनल रेंडरिंग में मदत होगी और बाकि का आउटपुट चेंज नहीं होगा + +अब लॉगिन और लॉगआउट बटन्स नए कंपोनेंट्स को देखो : ```js function LoginButton(props) { @@ -70,9 +72,10 @@ function LogoutButton(props) { } ``` -In the example below, we will create a [stateful component](/docs/state-and-lifecycle.html#adding-local-state-to-a-class) called `LoginControl`. -It will render either `` or `` depending on its current state. It will also render a `` from the previous example: +इस एक्साम्पल में हम बना रहे हे [स्टैटिफुल कम्पोनेनेट ] (/docs/state-and-lifecycle.html#adding-local-state-to-a-class) जिसे बोलते हे `LoginControl`. + +जो करंट स्टेट के हिसाब से `` या `` को रेंडर करेगा वो `` को भी रेंडर करेगा जैसे पिछले एक्साम्पल में बताया था : ```javascript{20-25,29,30} class LoginControl extends React.Component { @@ -118,7 +121,7 @@ ReactDOM.render( [**Try it on CodePen**](https://codepen.io/gaearon/pen/QKzAgB?editors=0010) -While declaring a variable and using an `if` statement is a fine way to conditionally render a component, sometimes you might want to use a shorter syntax. There are a few ways to inline conditions in JSX, explained below. +वेरिएबल डिक्लेअर करके और `if` स्टेटमेंट का यूज़ करना जिससे हम कॉम्पोनेन्ट को कंडशनल रेंडर कर सके यह अच्छी बात हे ,कभी आपको छोटा शार्ट सिंटेक्स उसे करना पड़ सकता हे .यहाँ नीचे, JSX में इन लाइन कंडीशंस के कुछ पर्याय दिए हे ### Inline If with Logical && Operator {#inline-if-with-logical--operator} From 6584ea29f4dae2605cd92c506d57bdc3e5d01caa Mon Sep 17 00:00:00 2001 From: Ashish Kamble Date: Wed, 3 Jul 2019 11:40:42 +0530 Subject: [PATCH 06/12] Update conditional-rendering.md --- content/docs/conditional-rendering.md | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) diff --git a/content/docs/conditional-rendering.md b/content/docs/conditional-rendering.md index 0b7589907..5a6de0207 100644 --- a/content/docs/conditional-rendering.md +++ b/content/docs/conditional-rendering.md @@ -123,9 +123,9 @@ ReactDOM.render( वेरिएबल डिक्लेअर करके और `if` स्टेटमेंट का यूज़ करना जिससे हम कॉम्पोनेन्ट को कंडशनल रेंडर कर सके यह अच्छी बात हे ,कभी आपको छोटा शार्ट सिंटेक्स उसे करना पड़ सकता हे .यहाँ नीचे, JSX में इन लाइन कंडीशंस के कुछ पर्याय दिए हे -### Inline If with Logical && Operator {#inline-if-with-logical--operator} +### लॉजिकल && ऑपरेटर के साथ इन लाइन `if` का इस्तेमाल {#inline-if-with-logical--operator} -You may [embed any expressions in JSX](/docs/introducing-jsx.html#embedding-expressions-in-jsx) by wrapping them in curly braces. This includes the JavaScript logical `&&` operator. It can be handy for conditionally including an element: +आप [कोई भी एक्सप्रेशन `jsx` में डाल सकते हे](/docs/introducing-jsx.html#embedding-expressions-in-jsx) उसको कर्ली ब्रेसेस के अंदर व्रैप करना पड़ेगा. इसमें जावास्क्रिप्ट का लॉजिकल `&&` ऑपरेटर भी शामिल हे. इसकी मदत से हम कोई एलिमेंट को कंडीशंस से इन्क्लूड कर सकते हे: ```js{6-10} function Mailbox(props) { @@ -151,15 +151,15 @@ ReactDOM.render( [**Try it on CodePen**](https://codepen.io/gaearon/pen/ozJddz?editors=0010) -It works because in JavaScript, `true && expression` always evaluates to `expression`, and `false && expression` always evaluates to `false`. +जैवसक्रिप्ट मे यह काम करता हे, `true && expression` हमेशा `expression` होता हे , और `false && expression` हमेशा `false` होता हे. -Therefore, if the condition is `true`, the element right after `&&` will appear in the output. If it is `false`, React will ignore and skip it. +इसीलिए, अगर कोई कंडीशन `true` हे, तोह `&&` के आगे का एलिमेंट आउटपुट में आ जाता हे. अगर यह `false` हे, फिर रियेक्ट इसको इग्नोर कर स्किप करेगा. -### Inline If-Else with Conditional Operator {#inline-if-else-with-conditional-operator} +### कंडीशनल ऑपरेटर्स के साथ इन लाइन if-else {#inline-if-else-with-conditional-operator} -Another method for conditionally rendering elements inline is to use the JavaScript conditional operator [`condition ? true : false`](https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Operators/Conditional_Operator). +जावास्क्रिप्ट की कंडीशनल ऑपरेटर्स का उसे करना [`condition ? true : false`](https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Operators/Conditional_Operator) यह इन लाइन एलिमेंट्स की कंडीशनल रेंडरिंग की दूसरी पद्धति हे. -In the example below, we use it to conditionally render a small block of text. +जैसे नीचे के एक्साम्पल में, कंडीशनल रेंडर कर छोटे टेक्स्ट ब्लॉक को रेंडर किआ. ```javascript{5} render() { @@ -172,7 +172,7 @@ render() { } ``` -It can also be used for larger expressions although it is less obvious what's going on: +इसे हम बड़े एक्सप्रेशन्स के साथ भी उसे कर सकते हे इससे कैसे काम हो रहा हे यह समझना आसान हो जाता हे : ```js{5,7,9} render() { @@ -189,9 +189,10 @@ render() { } ``` -Just like in JavaScript, it is up to you to choose an appropriate style based on what you and your team consider more readable. Also remember that whenever conditions become too complex, it might be a good time to [extract a component](/docs/components-and-props.html#extracting-components). +जैसे की जावास्क्रिप्ट में होता हे, यह हम पे निर्भर करता हे की कोनसा स्टाइल उसे करे जिससे आप और आपि टीम को समझना आसान हो. यह भी याद रहना की जैसे कंडीशंस बड़ी और बेचिदा हो, तब कॉम्पोनेन्ट को एक्सट्रेक्ट करना अच्छा रहता हे [कॉम्पोनेन्ट को एक्सट्रेक्ट](/docs/components-and-props.html#extracting-components). +, -### Preventing Component from Rendering {#preventing-component-from-rendering} +### कॉम्पोनेन्ट को रेंडर करने से बचाये {#preventing-component-from-rendering} In rare cases you might want a component to hide itself even though it was rendered by another component. To do this return `null` instead of its render output. From 7e8c545e2fe14b204b87cea02bc53cca404ca613 Mon Sep 17 00:00:00 2001 From: Ashish Kamble Date: Wed, 3 Jul 2019 11:47:56 +0530 Subject: [PATCH 07/12] Update conditional-rendering.md --- content/docs/conditional-rendering.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/content/docs/conditional-rendering.md b/content/docs/conditional-rendering.md index 5a6de0207..caf51e208 100644 --- a/content/docs/conditional-rendering.md +++ b/content/docs/conditional-rendering.md @@ -194,9 +194,9 @@ render() { ### कॉम्पोनेन्ट को रेंडर करने से बचाये {#preventing-component-from-rendering} -In rare cases you might want a component to hide itself even though it was rendered by another component. To do this return `null` instead of its render output. +कुछ केसेस में कंपोनेंट को छिपाना पड़ता हे जब की वह किसी दूसरे कॉम्पोनेन्ट में रेंडर हो रहे हो. तब हमको आउटपुट को रेंडर करने के अलावा `null` रीटर्न करना हे . -In the example below, the `` is rendered depending on the value of the prop called `warn`. If the value of the prop is `false`, then the component does not render: +जैसे नीचे के एक्साम्पल में, `` यह कॉम्पोनेन्ट `warn` प्रोप के वैल्यू के अनुसार रेंडर हुआ हे. अगर इसकी वैल्यू `false` रहती तोह कॉम्पोनेन्ट रेंडर नहीं होता : ```javascript{2-4,29} function WarningBanner(props) { @@ -244,4 +244,4 @@ ReactDOM.render( [**Try it on CodePen**](https://codepen.io/gaearon/pen/Xjoqwm?editors=0010) -Returning `null` from a component's `render` method does not affect the firing of the component's lifecycle methods. For instance `componentDidUpdate` will still be called. +कॉम्पोनेन्ट के `रेंडर` से `null` रीटर्न करने का और कॉम्पोनेन्ट के लाइफ साइकिल मेथड्स पर कोई असर नहीं पड़ता. जैसे की `componentDidUpdate` फिर भी कॉल होगा . From 78f26c76c1e42c7e69e23c3345b65d8a4a953ffb Mon Sep 17 00:00:00 2001 From: Ashish Kamble Date: Fri, 5 Jul 2019 09:13:45 +0530 Subject: [PATCH 08/12] Modified suggested changes --- content/docs/conditional-rendering.md | 37 +++++++++++++-------------- 1 file changed, 18 insertions(+), 19 deletions(-) diff --git a/content/docs/conditional-rendering.md b/content/docs/conditional-rendering.md index caf51e208..4980d4a77 100644 --- a/content/docs/conditional-rendering.md +++ b/content/docs/conditional-rendering.md @@ -8,11 +8,11 @@ redirect_from: - "tips/false-in-jsx.html" --- -React में, आप अलग-अलग कॉम्पोनेन्ट बना सकते हैं जो आपके लिए आवश्यक व्यवहार को संक्षिप्त करते हैं। फिर, आप अपने आवेदन की स्टेट के आधार पर उनमें से कुछ को ही रिप्रेजेंट कर सकते हैं।. +React में, आप अलग-अलग कौम्पोनॅन्ट बना सकते हैं जो आपके लिए आवश्यक व्यवहार को संक्षिप्त करते हैं। फिर, आप अपने ऍप की स्टेट के आधार पर उनमें से कुछ को ही रिप्रेजेंट कर सकते हैं। -कंडीशनल रेंडरिंग React में वैसे ही काम करता हे जैसे कंडीशंस जावास्क्रिप्ट में करते हे । जावास्क्रिप्ट ऑपरेटर्स जैसे [`if`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/if...else) और [`कंडीशनल ऑपरेटर्स `](https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Operators/Conditional_Operator) जो एलिमेंट्स बनके करंट स्टेट को रिप्रेजेंट करते हे । , फिर React UI को अपडेट करके मैच कर देगा । +कंडीशनल रेंडरिंग React में वैसे ही काम करता हे जैसे कंडीशंस जावास्क्रिप्ट में करते हे। जावास्क्रिप्ट ऑपरेटर्स जैसे [`if`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/if...else) और [`कंडीशनल ऑपरेटर्स `](https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Operators/Conditional_Operator) जो एलिमेंट्स बनके करंट स्टेट को रिप्रेजेंट करते हे। फिर React UI को अपडेट करके मैच कर देगा। -एक्साम्पल के तौर पे यह दो कॉम्पोनेन्ट देखो : +उदाहरण के तौर पे यह दो कॉम्पोनेन्ट देखो : ```js function UserGreeting(props) { @@ -24,7 +24,7 @@ function GuestGreeting(props) { } ``` -हम `Greeting` कॉम्पोनेन्ट बना रहे हे । अगर यूजर लॉगिन हे तभी देखेगा : +हम `Greeting` कॉम्पोनेन्ट बना रहे हे। अगर यूजर लॉगिन हे तभी देखेगा : ```javascript{3-7,11,12} function Greeting(props) { @@ -44,15 +44,14 @@ ReactDOM.render( [**Try it on CodePen**](https://codepen.io/gaearon/pen/ZpVxNq?editors=0011) - -यह एक्साम्पल `isLoggedIn` प्रोप के वैल्यू के अनुसार अलग अलग ग्रीटिंग्स रेंडर करता हे +यह उदहारण `isLoggedIn` प्रोप के वैल्यू के अनुसार अलग अलग ग्रीटिंग्स रेंडर करता हे। ### एलिमेंट वेरिएबल {#element-variables} -आप एलिमेंट्स को स्टोर करने के लिए वेरिएबल्स का उसे कर सकते हो . -जिससे आपको कंडीशनल रेंडरिंग में मदत होगी और बाकि का आउटपुट चेंज नहीं होगा +आप एलिमेंट्स को स्टोर करने के लिए वेरिएबल्स का उसे कर सकते हो। +जिससे आपको कंडीशनल रेंडरिंग में मदत होगी और बाकि का आउटपुट चेंज नहीं होगा। -अब लॉगिन और लॉगआउट बटन्स नए कंपोनेंट्स को देखो : +अब लॉगिन और लॉगआउट बटन्स नए कौम्पोनॅन्टस को देखो : ```js function LoginButton(props) { @@ -73,9 +72,9 @@ function LogoutButton(props) { ``` -इस एक्साम्पल में हम बना रहे हे [स्टैटिफुल कम्पोनेनेट ] (/docs/state-and-lifecycle.html#adding-local-state-to-a-class) जिसे बोलते हे `LoginControl`. +इस उदहारण में हम बना रहे हे [स्टेटफुल कौम्पोनॅन्ट](/docs/state-and-lifecycle.html#adding-local-state-to-a-class) जिसे बोलते हे `LoginControl`. -जो करंट स्टेट के हिसाब से `` या `` को रेंडर करेगा वो `` को भी रेंडर करेगा जैसे पिछले एक्साम्पल में बताया था : +जो करंट स्टेट के हिसाब से `` या `` को रेंडर करेगा। वो `` को भी रेंडर करेगा जैसे पिछले एक्साम्पल में बताया था : ```javascript{20-25,29,30} class LoginControl extends React.Component { @@ -121,11 +120,11 @@ ReactDOM.render( [**Try it on CodePen**](https://codepen.io/gaearon/pen/QKzAgB?editors=0010) -वेरिएबल डिक्लेअर करके और `if` स्टेटमेंट का यूज़ करना जिससे हम कॉम्पोनेन्ट को कंडशनल रेंडर कर सके यह अच्छी बात हे ,कभी आपको छोटा शार्ट सिंटेक्स उसे करना पड़ सकता हे .यहाँ नीचे, JSX में इन लाइन कंडीशंस के कुछ पर्याय दिए हे +वेरिएबल डिक्लेअर करके और `if` स्टेटमेंट का यूज़ करना जिससे हम कॉम्पोनेन्ट को कंडशनल रेंडर कर सके यह अच्छी बात हे ,कभी आपको छोटा शार्ट सिंटेक्स उसे करना पड़ सकता हे .यहाँ नीचे, JSX में इन लाइन कंडीशंस के कुछ पर्याय दिए हे। ### लॉजिकल && ऑपरेटर के साथ इन लाइन `if` का इस्तेमाल {#inline-if-with-logical--operator} -आप [कोई भी एक्सप्रेशन `jsx` में डाल सकते हे](/docs/introducing-jsx.html#embedding-expressions-in-jsx) उसको कर्ली ब्रेसेस के अंदर व्रैप करना पड़ेगा. इसमें जावास्क्रिप्ट का लॉजिकल `&&` ऑपरेटर भी शामिल हे. इसकी मदत से हम कोई एलिमेंट को कंडीशंस से इन्क्लूड कर सकते हे: +आप [कोई भी एक्सप्रेशन `jsx` में डाल सकते हे](/docs/introducing-jsx.html#embedding-expressions-in-jsx) उसको कर्ली ब्रेसेस के अंदर व्रैप करना पड़ेगा. इसमें जावास्क्रिप्ट का लॉजिकल `&&` ऑपरेटर भी शामिल हे. इसकी मदत से हम कोई एलिमेंट को कंडीशंस से इन्क्लूड कर सकते हे : ```js{6-10} function Mailbox(props) { @@ -151,15 +150,15 @@ ReactDOM.render( [**Try it on CodePen**](https://codepen.io/gaearon/pen/ozJddz?editors=0010) -जैवसक्रिप्ट मे यह काम करता हे, `true && expression` हमेशा `expression` होता हे , और `false && expression` हमेशा `false` होता हे. +जैवसक्रिप्ट मे यह काम करता हे, `true && expression` हमेशा `expression` होता हे , और `false && expression` हमेशा `false` होता हे। -इसीलिए, अगर कोई कंडीशन `true` हे, तोह `&&` के आगे का एलिमेंट आउटपुट में आ जाता हे. अगर यह `false` हे, फिर रियेक्ट इसको इग्नोर कर स्किप करेगा. +इसीलिए, अगर कोई कंडीशन `true` हे, तोह `&&` के आगे का एलिमेंट आउटपुट में आ जाता हे. अगर यह `false` हे, फिर रियेक्ट इसको इग्नोर कर स्किप करेगा। ### कंडीशनल ऑपरेटर्स के साथ इन लाइन if-else {#inline-if-else-with-conditional-operator} -जावास्क्रिप्ट की कंडीशनल ऑपरेटर्स का उसे करना [`condition ? true : false`](https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Operators/Conditional_Operator) यह इन लाइन एलिमेंट्स की कंडीशनल रेंडरिंग की दूसरी पद्धति हे. +जावास्क्रिप्ट की कंडीशनल ऑपरेटर्स का उसे करना [`condition ? true : false`](https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Operators/Conditional_Operator) यह इन लाइन एलिमेंट्स की कंडीशनल रेंडरिंग की दूसरी पद्धति हे। -जैसे नीचे के एक्साम्पल में, कंडीशनल रेंडर कर छोटे टेक्स्ट ब्लॉक को रेंडर किआ. +जैसे नीचे के एक्साम्पल में, कंडीशनल रेंडर कर छोटे टेक्स्ट ब्लॉक को रेंडर किआ। ```javascript{5} render() { @@ -194,7 +193,7 @@ render() { ### कॉम्पोनेन्ट को रेंडर करने से बचाये {#preventing-component-from-rendering} -कुछ केसेस में कंपोनेंट को छिपाना पड़ता हे जब की वह किसी दूसरे कॉम्पोनेन्ट में रेंडर हो रहे हो. तब हमको आउटपुट को रेंडर करने के अलावा `null` रीटर्न करना हे . +कुछ केसेस में कंपोनेंट को छिपाना पड़ता हे जब की वह किसी दूसरे कॉम्पोनेन्ट में रेंडर हो रहे हो. तब हमको आउटपुट को रेंडर करने के अलावा `null` रीटर्न करना हे। जैसे नीचे के एक्साम्पल में, `` यह कॉम्पोनेन्ट `warn` प्रोप के वैल्यू के अनुसार रेंडर हुआ हे. अगर इसकी वैल्यू `false` रहती तोह कॉम्पोनेन्ट रेंडर नहीं होता : @@ -244,4 +243,4 @@ ReactDOM.render( [**Try it on CodePen**](https://codepen.io/gaearon/pen/Xjoqwm?editors=0010) -कॉम्पोनेन्ट के `रेंडर` से `null` रीटर्न करने का और कॉम्पोनेन्ट के लाइफ साइकिल मेथड्स पर कोई असर नहीं पड़ता. जैसे की `componentDidUpdate` फिर भी कॉल होगा . +कॉम्पोनेन्ट के `रेंडर` से `null` रीटर्न करने का और कॉम्पोनेन्ट के लाइफ साइकिल मेथड्स पर कोई असर नहीं पड़ता. जैसे की `componentDidUpdate` फिर भी कॉल होगा। From 061d02c1407f052d3d6bcad1e07f5c9acefc00e2 Mon Sep 17 00:00:00 2001 From: Ashish Kamble Date: Fri, 5 Jul 2019 10:25:45 +0530 Subject: [PATCH 09/12] Started working on new hooks task --- content/docs/hooks-intro.md | 29 +++++++++++++++++------------ 1 file changed, 17 insertions(+), 12 deletions(-) diff --git a/content/docs/hooks-intro.md b/content/docs/hooks-intro.md index 96254ec81..8682f04e1 100644 --- a/content/docs/hooks-intro.md +++ b/content/docs/hooks-intro.md @@ -6,6 +6,7 @@ next: hooks-overview.html --- *Hooks* are a new addition in React 16.8. They let you use state and other React features without writing a class. +*Hooks* ये React 16.8 में नए से डाले हे। जिससे आप स्टेट और रियेक्ट के फीचर्स बिना क्लास लिखे भी इस्तेमाल कर सकते हे। ```js{4,5} import React, { useState } from 'react'; @@ -25,31 +26,35 @@ function Example() { } ``` -This new function `useState` is the first "Hook" we'll learn about, but this example is just a teaser. Don't worry if it doesn't make sense yet! +`useState` यह हमारा पहला "Hook" फंक्शन हे जिसके बारे में हम सीखेंगे, यह उदाहरण महज एक टीज़र हे. +यह समझ नहीं आया तोह भी फ़िक्र की कोई बात नहीं हे! -**You can start learning Hooks [on the next page](/docs/hooks-overview.html).** On this page, we'll continue by explaining why we're adding Hooks to React and how they can help you write great applications. ->Note +**यहाँ आप हुक्स के बारे में सीखना स्टार्ट कर सकते हे [अगले पेज पर](/docs/hooks-overview.html)** इस पेज पर हम, React में Hooks कैसे डाले और वो एक अच्छे एप्लीकेशन में कैसे मदत करेगा यह सीखेंगे + +>नोंद > ->React 16.8.0 is the first release to support Hooks. When upgrading, don't forget to update all packages, including React DOM. React Native will support Hooks in the next stable release. +>React 16.8.0 यह hooks को सपोर्ट करने वाला पहला रिलीज़ हे. +जब अपग्रेड करे, तब सभी पैकेजेस को अपग्रेड करना मत भूलना,React DOM के साथ. React Native अगले स्टेबल वर्शन से सपोर्ट करना स्टार्ट करेगा. -## Video Introduction {#video-introduction} +## विडिओ इंट्रोडक्शन {#video-introduction} -At React Conf 2018, Sophie Alpert and Dan Abramov introduced Hooks, followed by Ryan Florence demonstrating how to refactor an application to use them. Watch the video here: +React कांफ्रेंस 2018 में, सोफी अल्पर्ट और ड़यांन एब्रामोव Hooks को प्रदर्शित किआ, बादमे रायण फ्लोरेंस ने एप्लीकेशन को रेफेक्टर कर कैसे इस्तेमाल करे यह दिखाया. यहाँ वीडियो देखो: +
-## No Breaking Changes {#no-breaking-changes} +## कोई बदलाव नहीं {#no-breaking-changes} -Before we continue, note that Hooks are: +चालू करने से पहले, यह जान ले की hooks: -* **Completely opt-in.** You can try Hooks in a few components without rewriting any existing code. But you don't have to learn or use Hooks right now if you don't want to. -* **100% backwards-compatible.** Hooks don't contain any breaking changes. -* **Available now.** Hooks are now available with the release of v16.8.0. +* **पूर्णतः ऑप्ट-इन हे** कोड फिरसे बिना लिखे आप हुक्स को कुछ कॉम्पोनेन्ट में यूज़ कर सकते हे. अगर आप नहीं कहते तोह अभी आपको सिखने की और इस्तेमाल करने की कोई जरुरत नहीं हे. +* **100% बैकवर्ड-कम्पेटिबल हे.** Hooks में कोई नुकसानदायी बदलाव नहीं होता. +* **अभी मौजूद हे.** Hooks अब वर्शन v16.8.0 में मौजद हे -**There are no plans to remove classes from React.** You can read more about the gradual adoption strategy for Hooks in the [bottom section](#gradual-adoption-strategy) of this page. +**रियेक्ट से क्लासेज को निकलने का कोई प्लान नहीं हे** Hooks के बारे में ज्यादा जानकारी के लिए [नीचे](#gradual-adoption-strategy) इस पेज पर. **Hooks don't replace your knowledge of React concepts.** Instead, Hooks provide a more direct API to the React concepts you already know: props, state, context, refs, and lifecycle. As we will show later, Hooks also offer a new powerful way to combine them. From f4c0080edfd8dfd192d06c27d481f90dcc7c6e2a Mon Sep 17 00:00:00 2001 From: Ashish Kamble Date: Fri, 5 Jul 2019 16:14:25 +0530 Subject: [PATCH 10/12] Update hooks-intro.md --- content/docs/hooks-intro.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/content/docs/hooks-intro.md b/content/docs/hooks-intro.md index 8682f04e1..710dead11 100644 --- a/content/docs/hooks-intro.md +++ b/content/docs/hooks-intro.md @@ -56,9 +56,9 @@ React कांफ्रेंस 2018 में, सोफी अल्पर **रियेक्ट से क्लासेज को निकलने का कोई प्लान नहीं हे** Hooks के बारे में ज्यादा जानकारी के लिए [नीचे](#gradual-adoption-strategy) इस पेज पर. -**Hooks don't replace your knowledge of React concepts.** Instead, Hooks provide a more direct API to the React concepts you already know: props, state, context, refs, and lifecycle. As we will show later, Hooks also offer a new powerful way to combine them. +**हुक्स React कॉन्सेप्ट्स को रेप्लस करने हेतु नहीं हे** हलाकि, Hooks आपका पहले का रियेक्ट नॉलेज के प्रति डायरेक्ट API हे: props, state, context, refs, and lifecycle. hooks एक भरी फरकम सब को मिलके एक पर्याय हे. -**If you just want to start learning Hooks, feel free to [jump directly to the next page!](/docs/hooks-overview.html)** You can also keep reading this page to learn more about why we're adding Hooks, and how we're going to start using them without rewriting our applications. +**यहाँ आप हुक्स के बारे में सीखना स्टार्ट कर सकते हे [अगले पेज पर जम्प करे!](/docs/hooks-overview.html)** hooks के बारे में ज्यादा जानकारी के लिए पेज पढ़ते रहिये, और कोड फिरसे न लिख कर उसक यूज़ करना स्टार्ट करे. ## Motivation {#motivation} From 4ac754ef542c74de0aa468a44df9f235c3dffea8 Mon Sep 17 00:00:00 2001 From: Ashish Kamble Date: Mon, 8 Jul 2019 13:13:12 +0530 Subject: [PATCH 11/12] Update hooks-intro.md --- content/docs/hooks-intro.md | 33 ++++++++++++++------------------- 1 file changed, 14 insertions(+), 19 deletions(-) diff --git a/content/docs/hooks-intro.md b/content/docs/hooks-intro.md index 710dead11..96254ec81 100644 --- a/content/docs/hooks-intro.md +++ b/content/docs/hooks-intro.md @@ -6,7 +6,6 @@ next: hooks-overview.html --- *Hooks* are a new addition in React 16.8. They let you use state and other React features without writing a class. -*Hooks* ये React 16.8 में नए से डाले हे। जिससे आप स्टेट और रियेक्ट के फीचर्स बिना क्लास लिखे भी इस्तेमाल कर सकते हे। ```js{4,5} import React, { useState } from 'react'; @@ -26,39 +25,35 @@ function Example() { } ``` -`useState` यह हमारा पहला "Hook" फंक्शन हे जिसके बारे में हम सीखेंगे, यह उदाहरण महज एक टीज़र हे. -यह समझ नहीं आया तोह भी फ़िक्र की कोई बात नहीं हे! +This new function `useState` is the first "Hook" we'll learn about, but this example is just a teaser. Don't worry if it doesn't make sense yet! +**You can start learning Hooks [on the next page](/docs/hooks-overview.html).** On this page, we'll continue by explaining why we're adding Hooks to React and how they can help you write great applications. -**यहाँ आप हुक्स के बारे में सीखना स्टार्ट कर सकते हे [अगले पेज पर](/docs/hooks-overview.html)** इस पेज पर हम, React में Hooks कैसे डाले और वो एक अच्छे एप्लीकेशन में कैसे मदत करेगा यह सीखेंगे - ->नोंद +>Note > ->React 16.8.0 यह hooks को सपोर्ट करने वाला पहला रिलीज़ हे. -जब अपग्रेड करे, तब सभी पैकेजेस को अपग्रेड करना मत भूलना,React DOM के साथ. React Native अगले स्टेबल वर्शन से सपोर्ट करना स्टार्ट करेगा. +>React 16.8.0 is the first release to support Hooks. When upgrading, don't forget to update all packages, including React DOM. React Native will support Hooks in the next stable release. -## विडिओ इंट्रोडक्शन {#video-introduction} +## Video Introduction {#video-introduction} -React कांफ्रेंस 2018 में, सोफी अल्पर्ट और ड़यांन एब्रामोव Hooks को प्रदर्शित किआ, बादमे रायण फ्लोरेंस ने एप्लीकेशन को रेफेक्टर कर कैसे इस्तेमाल करे यह दिखाया. यहाँ वीडियो देखो: - +At React Conf 2018, Sophie Alpert and Dan Abramov introduced Hooks, followed by Ryan Florence demonstrating how to refactor an application to use them. Watch the video here:
-## कोई बदलाव नहीं {#no-breaking-changes} +## No Breaking Changes {#no-breaking-changes} -चालू करने से पहले, यह जान ले की hooks: +Before we continue, note that Hooks are: -* **पूर्णतः ऑप्ट-इन हे** कोड फिरसे बिना लिखे आप हुक्स को कुछ कॉम्पोनेन्ट में यूज़ कर सकते हे. अगर आप नहीं कहते तोह अभी आपको सिखने की और इस्तेमाल करने की कोई जरुरत नहीं हे. -* **100% बैकवर्ड-कम्पेटिबल हे.** Hooks में कोई नुकसानदायी बदलाव नहीं होता. -* **अभी मौजूद हे.** Hooks अब वर्शन v16.8.0 में मौजद हे +* **Completely opt-in.** You can try Hooks in a few components without rewriting any existing code. But you don't have to learn or use Hooks right now if you don't want to. +* **100% backwards-compatible.** Hooks don't contain any breaking changes. +* **Available now.** Hooks are now available with the release of v16.8.0. -**रियेक्ट से क्लासेज को निकलने का कोई प्लान नहीं हे** Hooks के बारे में ज्यादा जानकारी के लिए [नीचे](#gradual-adoption-strategy) इस पेज पर. +**There are no plans to remove classes from React.** You can read more about the gradual adoption strategy for Hooks in the [bottom section](#gradual-adoption-strategy) of this page. -**हुक्स React कॉन्सेप्ट्स को रेप्लस करने हेतु नहीं हे** हलाकि, Hooks आपका पहले का रियेक्ट नॉलेज के प्रति डायरेक्ट API हे: props, state, context, refs, and lifecycle. hooks एक भरी फरकम सब को मिलके एक पर्याय हे. +**Hooks don't replace your knowledge of React concepts.** Instead, Hooks provide a more direct API to the React concepts you already know: props, state, context, refs, and lifecycle. As we will show later, Hooks also offer a new powerful way to combine them. -**यहाँ आप हुक्स के बारे में सीखना स्टार्ट कर सकते हे [अगले पेज पर जम्प करे!](/docs/hooks-overview.html)** hooks के बारे में ज्यादा जानकारी के लिए पेज पढ़ते रहिये, और कोड फिरसे न लिख कर उसक यूज़ करना स्टार्ट करे. +**If you just want to start learning Hooks, feel free to [jump directly to the next page!](/docs/hooks-overview.html)** You can also keep reading this page to learn more about why we're adding Hooks, and how we're going to start using them without rewriting our applications. ## Motivation {#motivation} From 99b19a61a92d5d33c5e23c3573460f48bb8a52ca Mon Sep 17 00:00:00 2001 From: Ashish Kamble Date: Mon, 8 Jul 2019 13:57:10 +0530 Subject: [PATCH 12/12] Update conditional-rendering.md --- content/docs/conditional-rendering.md | 21 ++++++++++----------- 1 file changed, 10 insertions(+), 11 deletions(-) diff --git a/content/docs/conditional-rendering.md b/content/docs/conditional-rendering.md index 4980d4a77..8e102df6e 100644 --- a/content/docs/conditional-rendering.md +++ b/content/docs/conditional-rendering.md @@ -12,7 +12,7 @@ React में, आप अलग-अलग कौम्पोनॅन्ट कंडीशनल रेंडरिंग React में वैसे ही काम करता हे जैसे कंडीशंस जावास्क्रिप्ट में करते हे। जावास्क्रिप्ट ऑपरेटर्स जैसे [`if`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/if...else) और [`कंडीशनल ऑपरेटर्स `](https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Operators/Conditional_Operator) जो एलिमेंट्स बनके करंट स्टेट को रिप्रेजेंट करते हे। फिर React UI को अपडेट करके मैच कर देगा। -उदाहरण के तौर पे यह दो कॉम्पोनेन्ट देखो : +उदाहरण के तौर पे यह दो कॉम्पोनेन्ट देखो: ```js function UserGreeting(props) { @@ -74,7 +74,7 @@ function LogoutButton(props) { इस उदहारण में हम बना रहे हे [स्टेटफुल कौम्पोनॅन्ट](/docs/state-and-lifecycle.html#adding-local-state-to-a-class) जिसे बोलते हे `LoginControl`. -जो करंट स्टेट के हिसाब से `` या `` को रेंडर करेगा। वो `` को भी रेंडर करेगा जैसे पिछले एक्साम्पल में बताया था : +जो करंट स्टेट के हिसाब से `` या `` को रेंडर करेगा। वो `` को भी रेंडर करेगा जैसे पिछले एक्साम्पल में बताया था: ```javascript{20-25,29,30} class LoginControl extends React.Component { @@ -120,11 +120,11 @@ ReactDOM.render( [**Try it on CodePen**](https://codepen.io/gaearon/pen/QKzAgB?editors=0010) -वेरिएबल डिक्लेअर करके और `if` स्टेटमेंट का यूज़ करना जिससे हम कॉम्पोनेन्ट को कंडशनल रेंडर कर सके यह अच्छी बात हे ,कभी आपको छोटा शार्ट सिंटेक्स उसे करना पड़ सकता हे .यहाँ नीचे, JSX में इन लाइन कंडीशंस के कुछ पर्याय दिए हे। +वेरिएबल डिक्लेअर करके और `if` स्टेटमेंट का यूज़ करना जिससे हम कॉम्पोनेन्ट को कंडशनल रेंडर कर सके यह अच्छी बात हे, कभी आपको छोटा शार्ट सिंटेक्स उसे करना पड़ सकता हे .यहाँ नीचे, JSX में इन लाइन कंडीशंस के कुछ पर्याय दिए हे। ### लॉजिकल && ऑपरेटर के साथ इन लाइन `if` का इस्तेमाल {#inline-if-with-logical--operator} -आप [कोई भी एक्सप्रेशन `jsx` में डाल सकते हे](/docs/introducing-jsx.html#embedding-expressions-in-jsx) उसको कर्ली ब्रेसेस के अंदर व्रैप करना पड़ेगा. इसमें जावास्क्रिप्ट का लॉजिकल `&&` ऑपरेटर भी शामिल हे. इसकी मदत से हम कोई एलिमेंट को कंडीशंस से इन्क्लूड कर सकते हे : +आप [कोई भी एक्सप्रेशन `jsx` में डाल सकते हे](/docs/introducing-jsx.html#embedding-expressions-in-jsx) उसको कर्ली ब्रेसेस के अंदर व्रैप करना पड़ेगा. इसमें जावास्क्रिप्ट का लॉजिकल `&&` ऑपरेटर भी शामिल हे. इसकी मदत से हम कोई एलिमेंट को कंडीशंस से इन्क्लूड कर सकते हे: ```js{6-10} function Mailbox(props) { @@ -150,9 +150,9 @@ ReactDOM.render( [**Try it on CodePen**](https://codepen.io/gaearon/pen/ozJddz?editors=0010) -जैवसक्रिप्ट मे यह काम करता हे, `true && expression` हमेशा `expression` होता हे , और `false && expression` हमेशा `false` होता हे। +जैवसक्रिप्ट मे यह काम करता हे, `true && expression` हमेशा `expression` होता हे, और `false && expression` हमेशा `false` होता हे। -इसीलिए, अगर कोई कंडीशन `true` हे, तोह `&&` के आगे का एलिमेंट आउटपुट में आ जाता हे. अगर यह `false` हे, फिर रियेक्ट इसको इग्नोर कर स्किप करेगा। +इसीलिए, अगर कोई कंडीशन `true` हे, तोह `&&` के आगे का एलिमेंट आउटपुट में आ जाता हे। अगर यह `false` हे, फिर रियेक्ट इसको इग्नोर कर स्किप करेगा। ### कंडीशनल ऑपरेटर्स के साथ इन लाइन if-else {#inline-if-else-with-conditional-operator} @@ -171,7 +171,7 @@ render() { } ``` -इसे हम बड़े एक्सप्रेशन्स के साथ भी उसे कर सकते हे इससे कैसे काम हो रहा हे यह समझना आसान हो जाता हे : +इसे हम बड़े एक्सप्रेशन्स के साथ भी उसे कर सकते हे इससे कैसे काम हो रहा हे यह समझना आसान हो जाता हे: ```js{5,7,9} render() { @@ -188,14 +188,13 @@ render() { } ``` -जैसे की जावास्क्रिप्ट में होता हे, यह हम पे निर्भर करता हे की कोनसा स्टाइल उसे करे जिससे आप और आपि टीम को समझना आसान हो. यह भी याद रहना की जैसे कंडीशंस बड़ी और बेचिदा हो, तब कॉम्पोनेन्ट को एक्सट्रेक्ट करना अच्छा रहता हे [कॉम्पोनेन्ट को एक्सट्रेक्ट](/docs/components-and-props.html#extracting-components). -, +जैसे की जावास्क्रिप्ट में होता हे, यह हम पे निर्भर करता हे की कोनसा स्टाइल उसे करे जिससे आप और आपि टीम को समझना आसान हो. यह भी याद रहना की जैसे कंडीशंस बड़ी और बेचिदा हो, तब कॉम्पोनेन्ट को एक्सट्रेक्ट करना अच्छा रहता हे [कॉम्पोनेन्ट को एक्सट्रेक्ट](/docs/components-and-props.html#extracting-components)। ### कॉम्पोनेन्ट को रेंडर करने से बचाये {#preventing-component-from-rendering} कुछ केसेस में कंपोनेंट को छिपाना पड़ता हे जब की वह किसी दूसरे कॉम्पोनेन्ट में रेंडर हो रहे हो. तब हमको आउटपुट को रेंडर करने के अलावा `null` रीटर्न करना हे। -जैसे नीचे के एक्साम्पल में, `` यह कॉम्पोनेन्ट `warn` प्रोप के वैल्यू के अनुसार रेंडर हुआ हे. अगर इसकी वैल्यू `false` रहती तोह कॉम्पोनेन्ट रेंडर नहीं होता : +जैसे नीचे के एक्साम्पल में, `` यह कॉम्पोनेन्ट `warn` प्रोप के वैल्यू के अनुसार रेंडर हुआ हे. अगर इसकी वैल्यू `false` रहती तोह कॉम्पोनेन्ट रेंडर नहीं होता: ```javascript{2-4,29} function WarningBanner(props) { @@ -243,4 +242,4 @@ ReactDOM.render( [**Try it on CodePen**](https://codepen.io/gaearon/pen/Xjoqwm?editors=0010) -कॉम्पोनेन्ट के `रेंडर` से `null` रीटर्न करने का और कॉम्पोनेन्ट के लाइफ साइकिल मेथड्स पर कोई असर नहीं पड़ता. जैसे की `componentDidUpdate` फिर भी कॉल होगा। +कॉम्पोनेन्ट के `रेंडर` से `null` रीटर्न करने का और कॉम्पोनेन्ट के लाइफ साइकिल मेथड्स पर कोई असर नहीं पड़ता। जैसे की `componentDidUpdate` फिर भी कॉल होगा।