English to Hindi: Referencing values with refs#222
English to Hindi: Referencing values with refs#222khizarq313 wants to merge 0 commit intoreactjs:mainfrom khizarq313:main
Conversation
arshadkazmi42
left a comment
There was a problem hiding this comment.
Thank you for working on this. I have added review comments till line 44.
Let's get these fixed then we can continue further with the review.
To know more about our review process check #23
| <Intro> | ||
|
|
||
| When you want a component to "remember" some information, but you don't want that information to [trigger new renders](/learn/render-and-commit), you can use a *ref*. | ||
| जब आप किसी कंपोनेंट को कुछ जानकारी "याद" करवाना चाहते हों, लेकिन आप नहीं चाहते कि वह जानकारी [नए रेंडर को ट्रिगर करे](/learn/render-and-commit),तब आप एक *ref * का उपयोग कर सकते हैं। |
There was a problem hiding this comment.
| जब आप किसी कंपोनेंट को कुछ जानकारी "याद" करवाना चाहते हों, लेकिन आप नहीं चाहते कि वह जानकारी [नए रेंडर को ट्रिगर करे](/learn/render-and-commit),तब आप एक *ref * का उपयोग कर सकते हैं। | |
| जब आप किसी कौम्पोनॅन्ट को कुछ जानकारी "याद" रखवाना चाहते हों, लेकिन आप नहीं चाहते कि वह जानकारी [नए रेंडर को ट्रिगर करे](/learn/render-and-commit), तब आप एक *ref * का उपयोग कर सकते हैं। |
| - How to update a ref's value | ||
| - How refs are different from state | ||
| - How to use refs safely | ||
| - अपने कंपोनेंट में refs कैसे जोड़ें |
There was a problem hiding this comment.
कंपोनेंट => कौम्पोनॅन्ट
update all the references of this in the whole file. You can do a find and replace
| - How to update a ref's value | ||
| - How refs are different from state | ||
| - How to use refs safely | ||
| - अपने कंपोनेंट में refs कैसे जोड़ें |
There was a problem hiding this comment.
| - अपने कंपोनेंट में refs कैसे जोड़ें | |
| - अपने कौम्पोनॅन्ट में refs कैसे ऐड करें |
| - How refs are different from state | ||
| - How to use refs safely | ||
| - अपने कंपोनेंट में refs कैसे जोड़ें | ||
| - refs के वैल्यू को कैसे अपडेट करें |
There was a problem hiding this comment.
| - refs के वैल्यू को कैसे अपडेट करें | |
| - ref के वैल्यू को कैसे अपडेट करें |
| - How to use refs safely | ||
| - अपने कंपोनेंट में refs कैसे जोड़ें | ||
| - refs के वैल्यू को कैसे अपडेट करें | ||
| - refs state से कैसे अलग होते हैं |
There was a problem hiding this comment.
| - refs state से कैसे अलग होते हैं | |
| - ref state से कैसे अलग होते हैं |
| - अपने कंपोनेंट में refs कैसे जोड़ें | ||
| - refs के वैल्यू को कैसे अपडेट करें | ||
| - refs state से कैसे अलग होते हैं | ||
| - refs को सुरक्षित तरीके से कैसे उपयोग करें |
There was a problem hiding this comment.
| - refs को सुरक्षित तरीके से कैसे उपयोग करें | |
| - ref को सुरक्षित तरीके से कैसे उपयोग करें |
| </YouWillLearn> | ||
|
|
||
| ## Adding a ref to your component {/*adding-a-ref-to-your-component*/} | ||
| ## अपने कंपोनेंट में refs जोड़ना {/*adding-a-ref-to-your-component*/} |
There was a problem hiding this comment.
| ## अपने कंपोनेंट में refs जोड़ना {/*adding-a-ref-to-your-component*/} | |
| ## अपने कौम्पोनॅन्ट में ref ऐड करना {/*adding-a-ref-to-your-component*/} |
| ## अपने कंपोनेंट में refs जोड़ना {/*adding-a-ref-to-your-component*/} | ||
|
|
||
| You can add a ref to your component by importing the `useRef` Hook from React: | ||
| आप React से `useRef` हुक इम्पोर्ट करके अपने कंपोनेंट में एक refs जोड़ सकते हैं: |
There was a problem hiding this comment.
| आप React से `useRef` हुक इम्पोर्ट करके अपने कंपोनेंट में एक refs जोड़ सकते हैं: | |
| आप React से `useRef` हुक इम्पोर्ट करके अपने कौम्पोनॅन्ट में एक ref ऐड कर सकते हैं: |
| ``` | ||
|
|
||
| Inside your component, call the `useRef` Hook and pass the initial value that you want to reference as the only argument. For example, here is a ref to the value `0`: | ||
| अपने कंपोनेंट के अंदर, `useRef` हुक को कॉल करें और प्रारंभिक वैल्यू पास करें जिसे आप केवल तर्क के रूप में रेफरन्स करना चाहते हैं। उदाहरण के लिए, यहां वैल्यू `0` के लिए एक refs है: |
There was a problem hiding this comment.
| अपने कंपोनेंट के अंदर, `useRef` हुक को कॉल करें और प्रारंभिक वैल्यू पास करें जिसे आप केवल तर्क के रूप में रेफरन्स करना चाहते हैं। उदाहरण के लिए, यहां वैल्यू `0` के लिए एक refs है: | |
| अपने कौम्पोनॅन्ट के अंदर, `useRef` हुक को कॉल करें और इनिशियल वैल्यू पास करें जिसे आप केवल आर्गुमेंट के रूप में रेफरन्स करना चाहते हैं। उदाहरण के लिए, यहां वैल्यू `0` के लिए एक ref है: |
| ``` | ||
|
|
||
| `useRef` returns an object like this: | ||
| `useRef` एक इस तरह के ऑब्जेक्ट को वापस करता है: |
There was a problem hiding this comment.
| `useRef` एक इस तरह के ऑब्जेक्ट को वापस करता है: | |
| `useRef` एक इस तरह के ऑब्जेक्ट को रिटर्न करता है: |
|
@khizarq313 I have added some review comments. Can you fix those, also can you fix the conflict we are seeing in one of the file. |
sure, I will take a look at it asap. |
|
@khizarq313 Looks like you did a force push which removed all the changes and I am seeing the PR is closed. Are you going to open a new PR? |
|
i was trying to fix the conflict and there was a massage saying that my repository is one commit ahead, i thought that might be causing the conflict so i pressed the sync button...and this happened.. sorry for the trouble i caused... |
|
I am correcting my translation,also i am reffering hindi glossary page i still don't know the reason behind the previously faced conflict, |
|
Yes. it is correct. Only one thing you need to consider is your fork could get out of sync from the main repository and you will have to sync it with the main repository You can refer this stackoverflow on how to do this https://stackoverflow.com/a/7244456/3136282 Or I have created a cli tool for this upfork you could also use this. |
|
sure, I will go with cli tool as it seems simple and easy to use. |
|
Hey! English: one more thing... |
|
also what should i use for word: synchronously or तुल्यकालिकत ? |
|
@khizarq313 We can use following
|
No description provided.