Skip to content
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

translated: useEffect hook #44

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

lifeparticle
Copy link

I have translated a part of the useEffect hook page.

@moshfiqrony
Copy link
Collaborator

moshfiqrony commented May 28, 2023

Please carefully read these two things

  • Did you asked to translate this page? Or any maintainer assigned you in this page. I can't see that.
  • If the page is not done fully open the PR as draft.

@lifeparticle
Copy link
Author

@moshfiqrony Thank you for assigning the page. Would you like for me to translate the whole page into one PR?

@lifeparticle lifeparticle marked this pull request as draft May 28, 2023 07:14
@moshfiqrony
Copy link
Collaborator

If the page is too large we can divide it into multiple PRs. But I think 1 is enough for this page.

@lifeparticle
Copy link
Author

Understood, I'll translate the whole page into one PR. Thanks!

Copy link
Collaborator

@moshfiqrony moshfiqrony left a comment

Choose a reason for hiding this comment

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

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.

@@ -20,7 +21,7 @@ useEffect(setup, dependencies?)

### `useEffect(setup, dependencies?)` {/*useeffect*/}

Call `useEffect` at the top level of your component to declare an Effect:
একটি ইফেক্ট ডিক্লেয়ার করার জন্য আপনার কম্পোনেন্টের শীর্ষ স্তরে `useEffect` কল করুন:
Copy link
Collaborator

Choose a reason for hiding this comment

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

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

Suggested change
একটি ইফেক্ট ডিক্লেয়ার করার জন্য আপনার কম্পোনেন্টের শীর্ষ স্তরে `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 ফাংশন চালাবে।
Copy link
Collaborator

Choose a reason for hiding this comment

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

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.

@moshfiqrony
Copy link
Collaborator

Any update on this?

@lifeparticle
Copy link
Author

Hello, sorry for the late reply; I'll try to finish it by this month; thanks for your patience.

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