translate "Passing Data Deeply with Context" page#337
Merged
arshadkazmi42 merged 2 commits intoreactjs:mainfrom Mar 26, 2025
Merged
Conversation
Size changesDetails📦 Next.js Bundle Analysis for react-devThis analysis was generated by the Next.js Bundle Analysis action. 🤖 This PR introduced no changes to the JavaScript bundle! 🙌 |
Contributor
Author
|
@arshadkazmi42 , gentle reminder for reviewing this. |
arshadkazmi42
requested changes
Mar 24, 2025
Member
arshadkazmi42
left a comment
There was a problem hiding this comment.
looks good. left a few minor comments.
| ``` | ||
|
|
||
| Currently, the `Heading` component reads `level` from props: | ||
| वर्तमान में, `Heading` कॉम्पोनेन्ट प्रॉप्स से `level` प्राप्त करता है: |
Member
There was a problem hiding this comment.
Suggested change
| वर्तमान में, `Heading` कॉम्पोनेन्ट प्रॉप्स से `level` प्राप्त करता है: | |
| वर्तमान में, `Heading` कौम्पोनॅन्ट प्रॉप्स से `level` प्राप्त करता है: |
can you use this spelling for component. update all places in the file
| ``` | ||
|
|
||
| Instead, remove the `level` prop and read the value from the context you just imported, `LevelContext`: | ||
| इसके बजाय, `level` प्रोप को हटा दें और आपके द्वारा आयात किए गए कॉन्टेक्स्ट `LevelContext` से मान पढ़ें: |
Member
There was a problem hiding this comment.
Suggested change
| इसके बजाय, `level` प्रोप को हटा दें और आपके द्वारा आयात किए गए कॉन्टेक्स्ट `LevelContext` से मान पढ़ें: | |
| इसके बजाय, `level` प्रोप को हटा दें और आपके द्वारा इम्पोर्ट किए गए कॉन्टेक्स्ट `LevelContext` से वैल्यू रीड करें: |
| यदि आप कॉन्टेक्स्ट प्रदान नहीं करते हैं, तो React पिछले चरण में आपके द्वारा निर्दिष्ट डिफ़ॉल्ट मान का उपयोग करेगा। इस उदाहरण में, आपने `1` को `createContext` के आर्ग्युमेंट के रूप में निर्दिष्ट किया था, इसलिए `useContext(LevelContext)` `1` रिटर्न करता है, जिससे वे सभी शीर्षक `<h1>` पर सेट हो गए हैं। आइए इस समस्या को प्रत्येक `Section` अपना कॉन्टेक्स्ट प्रदान कराने के द्वारा ठीक करें । | ||
|
|
||
| ### Step 3: Provide the context {/*step-3-provide-the-context*/} | ||
| ### चरण 3: कॉन्टेक्स्ट प्रदान करें {/*step-3-provide-the-context*/} |
Member
There was a problem hiding this comment.
Suggested change
| ### चरण 3: कॉन्टेक्स्ट प्रदान करें {/*step-3-provide-the-context*/} | |
| ### स्टेप 3: कॉन्टेक्स्ट प्रदान करें {/*step-3-provide-the-context*/} |
update all the steps with this
| ### चरण 3: कॉन्टेक्स्ट प्रदान करें {/*step-3-provide-the-context*/} | ||
|
|
||
| The `Section` component currently renders its children: | ||
| वर्तमान में `Section` कॉम्पोनेन्ट अपने चिल्ड्रन को रेंडर करता है: |
Member
There was a problem hiding this comment.
Suggested change
| वर्तमान में `Section` कॉम्पोनेन्ट अपने चिल्ड्रन को रेंडर करता है: | |
| अभी `Section` कौम्पोनॅन्ट अपने चिल्ड्रन को रेंडर करता है: |
Contributor
Author
@arshadkazmi42 , addressed comments. |
arshadkazmi42
approved these changes
Mar 26, 2025
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR translates the Passing Data Deeply with Context page to Hindi.
#168 (comment)
@arshadkazmi42 , please review