translated: useEffect hook#44
translated: useEffect hook#44lifeparticle wants to merge 1 commit intoreactjs:mainfrom lifeparticle:translate-useEffect
Conversation
|
Please carefully read these two things
|
|
@moshfiqrony Thank you for assigning the page. Would you like for me to translate the whole page into one PR? |
|
If the page is too large we can divide it into multiple PRs. But I think 1 is enough for this page. |
|
Understood, I'll translate the whole page into one PR. Thanks! |
moshfiqrony
left a comment
There was a problem hiding this comment.
Overall the translations are very mechanical. try to be ease with your translations. Like how you would teach it to your friend or your fellow junior.
| ### `useEffect(setup, dependencies?)` {/*useeffect*/} | ||
|
|
||
| Call `useEffect` at the top level of your component to declare an Effect: | ||
| একটি ইফেক্ট ডিক্লেয়ার করার জন্য আপনার কম্পোনেন্টের শীর্ষ স্তরে `useEffect` কল করুন: |
There was a problem hiding this comment.
Translation ta joto ta bujhte valo lage oivabe korar chesta korun. শীর্ষ স্তরে ekti suddho bangla. Normali puro translation e cholito bangla bebohar kora hoy. tai eitike apni onnovabe likhte parten
| একটি ইফেক্ট ডিক্লেয়ার করার জন্য আপনার কম্পোনেন্টের শীর্ষ স্তরে `useEffect` কল করুন: | |
| একটি ইফেক্ট ডিক্লেয়ার করার জন্য আপনার কম্পোনেন্টের একদম উপরে `useEffect` কল করুন: |
| * `setup`: The function with your Effect's logic. Your setup function may also optionally return a *cleanup* function. When your component is added to the DOM, React will run your setup function. After every re-render with changed dependencies, React will first run the cleanup function (if you provided it) with the old values, and then run your setup function with the new values. After your component is removed from the DOM, React will run your cleanup function. | ||
| * **optional** `dependencies`: The list of all reactive values referenced inside of the `setup` code. Reactive values include props, state, and all the variables and functions declared directly inside your component body. If your linter is [configured for React](/learn/editor-setup#linting), it will verify that every reactive value is correctly specified as a dependency. The list of dependencies must have a constant number of items and be written inline like `[dep1, dep2, dep3]`. React will compare each dependency with its previous value using the [`Object.is`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/is) comparison. If you omit this argument, your Effect will re-run after every re-render of the component. [See the difference between passing an array of dependencies, an empty array, and no dependencies at all.](#examples-dependencies) | ||
| * `setup`: আপনার ইফেক্টের যুক্তি সহ ফাংশন। আপনার সেটআপ ফাংশন অপশনালি একটি *cleanup* ফাংশন রিটার্ন করতে পারে। যখন আপনার কম্পোনেন্টটি DOM-এ যুক্ত করা হয়, React আপনার সেটআপ ফাংশন চালাবে। প্রতিটি রি-রেন্ডারের পরে পরিবর্তিত ডিপেন্ডেন্সি সহ, React প্রথমে পুরানো মানগুলির সাথে আপনার cleanup ফাংশন চালাবে (আপনি যদি এটি প্রদান করেন), এবং তারপর নতুন মানগুলির সাথে আপনার সেটআপ ফাংশন চালাবে। আপনার কম্পোনেন্টটি DOM থেকে সরানোর পরে, React আপনার cleanup ফাংশন চালাবে। |
There was a problem hiding this comment.
Reading ta ektu mechanical. Normally amra jeivabe kothaboli emon na. Apnar jodi mone hoy je puro banglay oivabe likha jacchena kichu english use koren. Kintu porte jeno moja lage. If needed someone else will take another stab on it later if they comeup with a new good bangla of that line.
|
Any update on this? |
|
Hello, sorry for the late reply; I'll try to finish it by this month; thanks for your patience. |
I have translated a part of the useEffect hook page.