Skip to content

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

Conversation

aayush301
Copy link
Contributor

This PR translates the Passing Data Deeply with Context page to Hindi.
#168 (comment)

@arshadkazmi42 , please review

Copy link

Size changes

📦 Next.js Bundle Analysis for react-dev

This analysis was generated by the Next.js Bundle Analysis action. 🤖

This PR introduced no changes to the JavaScript bundle! 🙌

@aayush301
Copy link
Contributor Author

@arshadkazmi42 , gentle reminder for reviewing this.

Copy link
Member

@arshadkazmi42 arshadkazmi42 left a 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` प्राप्त करता है:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
वर्तमान में, `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` से मान पढ़ें:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
इसके बजाय, `level` प्रोप को हटा दें और आपके द्वारा आयात किए गए कॉन्टेक्स्ट `LevelContext` से मान पढ़ें:
इसके बजाय, `level` प्रोप को हटा दें और आपके द्वारा इम्पोर्ट किए गए कॉन्टेक्स्ट `LevelContext` से वैल्यू रीड करें:


### Step 3: Provide the context {/*step-3-provide-the-context*/}
### चरण 3: कॉन्टेक्स्ट प्रदान करें {/*step-3-provide-the-context*/}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
### चरण 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` कॉम्पोनेन्ट अपने चिल्ड्रन को रेंडर करता है:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
वर्तमान में `Section` कॉम्पोनेन्ट अपने चिल्ड्रन को रेंडर करता है:
अभी `Section` कौम्पोनॅन्ट अपने चिल्ड्रन को रेंडर करता है:

@aayush301
Copy link
Contributor Author

looks good. left a few minor comments.

@arshadkazmi42 , addressed comments.

@arshadkazmi42 arshadkazmi42 merged commit d141b72 into reactjs:main Mar 26, 2025
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants