-
Notifications
You must be signed in to change notification settings - Fork 131
translate "Passing Data Deeply with Context" page #337
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
translate "Passing Data Deeply with Context" page #337
Conversation
Size changes📦 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! 🙌 |
@arshadkazmi42 , gentle reminder for reviewing this. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks good. left a few minor comments.
|
||
```js | ||
import { useContext } from 'react'; | ||
import { LevelContext } from './LevelContext.js'; | ||
``` | ||
|
||
Currently, the `Heading` component reads `level` from props: | ||
वर्तमान में, `Heading` कॉम्पोनेन्ट प्रॉप्स से `level` प्राप्त करता है: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
वर्तमान में, `Heading` कॉम्पोनेन्ट प्रॉप्स से `level` प्राप्त करता है: | |
वर्तमान में, `Heading` कौम्पोनॅन्ट प्रॉप्स से `level` प्राप्त करता है: |
can you use this spelling for component. update all places in the file
|
||
```js | ||
export default function Heading({ level, children }) { | ||
// ... | ||
} | ||
``` | ||
|
||
Instead, remove the `level` prop and read the value from the context you just imported, `LevelContext`: | ||
इसके बजाय, `level` प्रोप को हटा दें और आपके द्वारा आयात किए गए कॉन्टेक्स्ट `LevelContext` से मान पढ़ें: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
इसके बजाय, `level` प्रोप को हटा दें और आपके द्वारा आयात किए गए कॉन्टेक्स्ट `LevelContext` से मान पढ़ें: | |
इसके बजाय, `level` प्रोप को हटा दें और आपके द्वारा इम्पोर्ट किए गए कॉन्टेक्स्ट `LevelContext` से वैल्यू रीड करें: |
|
||
### Step 3: Provide the context {/*step-3-provide-the-context*/} | ||
### चरण 3: कॉन्टेक्स्ट प्रदान करें {/*step-3-provide-the-context*/} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
### चरण 3: कॉन्टेक्स्ट प्रदान करें {/*step-3-provide-the-context*/} | |
### स्टेप 3: कॉन्टेक्स्ट प्रदान करें {/*step-3-provide-the-context*/} |
update all the steps with this
|
||
The `Section` component currently renders its children: | ||
वर्तमान में `Section` कॉम्पोनेन्ट अपने चिल्ड्रन को रेंडर करता है: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
वर्तमान में `Section` कॉम्पोनेन्ट अपने चिल्ड्रन को रेंडर करता है: | |
अभी `Section` कौम्पोनॅन्ट अपने चिल्ड्रन को रेंडर करता है: |
@arshadkazmi42 , addressed comments. |
This PR translates the Passing Data Deeply with Context page to Hindi.
#168 (comment)
@arshadkazmi42 , please review