You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* **optional** `options`: এই React root এর জন্য বিভিন্ন option সংবলিত একটি অবজেক্ট।
43
43
44
-
<<<<<<< HEAD
45
-
* **optional** `onRecoverableError`: যখন React স্বয়ংক্রিয় ভাবে কোন error থেকে নিজেকে recover করে তখন হওয়া কলব্যাক।
46
-
* **optional** `identifierPrefix`: [`useId`](/reference/react/useId) দিয়ে তৈরী হওয়া ID গুলোর জন্য React যে string prefix ব্যবহার করে। একই পেইজে যখন একাধিক rot থাকে তখন conflict এড়াতে এটা কাজে লাগে।
47
-
=======
48
-
* **optional** `onCaughtError`: Callback called when React catches an error in an Error Boundary. Called with the `error` caught by the Error Boundary, and an `errorInfo` object containing the `componentStack`.
49
-
* **optional** `onUncaughtError`: Callback called when an error is thrown and not caught by an Error Boundary. Called with the `error` that was thrown and an `errorInfo` object containing the `componentStack`.
50
-
* **optional** `onRecoverableError`: Callback called when React automatically recovers from errors. Called with the `error` React throws, and an `errorInfo` object containing the `componentStack`. Some recoverable errors may include the original error cause as `error.cause`.
51
-
* **optional** `identifierPrefix`: A string prefix React uses for IDs generated by [`useId`.](/reference/react/useId) Useful to avoid conflicts when using multiple roots on the same page. Must be the same prefix as used on the server.
52
-
>>>>>>> 50d6991ca6652f4bc4c985cf0c0e593864f2cc91
44
+
* **optional** `onCaughtError`: Error Boundary এ React কোন error ধরলে কল হওয়া callback। Error Boundary এর ধরা `error` এবং `componentStack` সংবলিত `errorInfo` অব্জেক্ট দিয়ে কল করা হয়।
45
+
* **optional** `onUncaughtError`: কোন error throw হয়ে Error Boundary এর মাধ্যমে ধরা না হলে কল হওয়া callback। Throw হওয়া `error` এবং `componentStack` সংবলিত `errorInfo` অব্জেক্ট দিয়ে কল করা হয়।
46
+
* **optional** `onRecoverableError`: যখন React স্বয়ংক্রিয়ভাবে error থেকে recover করে তখন কল হওয়া callback। React এর throw করা `error` এবং `componentStack` সংবলিত `errorInfo` অব্জেক্ট দিয়ে কল করা হয়। কিছু recoverable error এর মূল কারণ `error.cause` হিসেবে থাকতে পারে।
47
+
* **optional** `identifierPrefix`: [`useId`](/reference/react/useId) দিয়ে তৈরী হওয়া ID গুলোর জন্য React যে string prefix ব্যবহার করে। একই পেইজে যখন একাধিক root থাকে তখন conflict এড়াতে এটা কাজে লাগে। সার্ভারে ব্যবহৃত prefix এর সাথে একই হতে হবে।
53
48
54
49
55
50
#### রিটার্ন {/*returns*/}
@@ -88,7 +83,7 @@ React hydrated `root` এর ভেতরে থাকা `<App />` আপডে
88
83
89
84
#### সতর্কতা {/*root-render-caveats*/}
90
85
91
-
* রুটের hydrating শেষ হবার আগে আপনি যদি `root.render` কল করেন, তাহলে React সার্ভার-রেন্ডার্ড HTML মুছে ফেলবে এবং সম্পূর্ণ রুটটাকে ক্লায়েন্ট রেন্ডারিং এর জন্য তৈরী করে ফেলবে।
86
+
* রুটের hydrating শেষ হবার আগে আপনি `root.render` কল করার চেষ্টা করেন, তাহলে React সার্ভার-রেন্ডার্ড HTML মুছে ফেলবে এবং সম্পূর্ণ রুটটাকে ক্লায়েন্ট রেন্ডারিং এর জন্য তৈরী করবে।
92
87
93
88
---
94
89
@@ -104,16 +99,12 @@ root.unmount();
104
99
105
100
এটা তখন সবচেয়ে কাজে লাগে যদি আপনার React রুটের DOM নোড (বা এর কোন ancestor) অন্য কোন কোডের কারণে DOM থেকে মুছে যায়। উদাহরণস্বরূপ, ধরে একটা jQuery ট্যাব প্যানেল আছে যা DOM থেকে অচল ট্যাবগুলো মুছে ফেলে। যদি একটা ট্যাব মুছে যায় তবে এর ভেতর থাকা সব কিছুও (ভিতরে থাকা React রুটগুলো সহ) DOM থেকে মুছে যাবে। সেক্ষেত্রে, `root.unmount` কল করার মাধ্যমে আপনার React কে বলতে হবে মুছে যাওয়া রুটের কনটেন্ট ম্যানেজ করা "বন্ধ" করতে। না হলে, মুছে যাওয়া রুটের ভেতরকার কম্পোনেন্ট সাবস্ক্রিপশনের মত global resource মুছবে না এবং সেগুলো ফ্রি হবে না।
106
101
107
-
<<<<<<< HEAD
108
102
`root.unmount` কল করলে রুটের সব কম্পোনেন্ট আনমাউন্ট হবে এবং রুট DOM নোড থেকে React "detach" হয়ে যাবে। একই সাথে ট্রিতে কোন ইভেন্ট হ্যান্ডলার বা স্টেট থাকলে সেটাও মুছে যাবে।
109
-
=======
110
-
Calling `root.unmount` will unmount all the components in the root and "detach" React from the root DOM node, including removing any event handlers or state in the tree.
111
-
>>>>>>> 50d6991ca6652f4bc4c985cf0c0e593864f2cc91
112
103
113
104
114
105
#### প্যারামিটার {/*root-unmount-parameters*/}
115
106
116
-
`root.unmount`does not accept any parameters.
107
+
`root.unmount`কোন প্যারামিটার গ্রহণ করে না।
117
108
118
109
119
110
#### রিটার্ন {/*root-unmount-returns*/}
@@ -279,11 +270,7 @@ export default function App() {
279
270
280
271
</Sandpack>
281
272
282
-
<<<<<<< HEAD
283
273
এটা শুধুমাত্র এক স্তর গভীরে কাজ করে, এবং এর উদ্দেশ্য একটা escape hatch এর মত কাজ করা। এর অতিরিক্ত ব্যবহার এড়িয়ে চলুন। যদি না এটা টেক্সট কনটেন্ট হয়, React একে প্যাচ আপ করার চেষ্টা করবে না, সুতরাং এটা ভবিষ্যতে আপডেট হবার আগ পর্যন্ত অসামাঞ্জস্যপূর্ন থাকতে পারে।
284
-
=======
285
-
This only works one level deep, and is intended to be an escape hatch. Don’t overuse it. React will **not** attempt to patch mismatched text content.
286
-
>>>>>>> 50d6991ca6652f4bc4c985cf0c0e593864f2cc91
287
274
288
275
---
289
276
@@ -385,14 +372,11 @@ export default function App({counter}) {
385
372
386
373
</Sandpack>
387
374
388
-
<<<<<<< HEAD
389
-
একটা hydrated রুটে [`root.render`](#root-render) কল করার বিষয়টা বিরল। সাধারণত, আপনি এর বদলে কম্পোনেন্টগুলোর কোন একটির মধ্যে [state আপডেট](/reference/react/useState) করবেন।
390
-
=======
391
-
It is uncommon to call [`root.render`](#root-render) on a hydrated root. Usually, you'll [update state](/reference/react/useState) inside one of the components instead.
375
+
একটা hydrated রুটে [`root.render`](#root-render) কল করার বিষয়টা বিরল। সাধারণত, আপনি এর বদলে কম্পোনেন্টগুলোর কোন একটির মধ্যে [state আপডেট](/reference/react/useState) করবেন।
392
376
393
-
### Error logging in production {/*error-logging-in-production*/}
By default, React will log all errors to the console. To implement your own error reporting, you can provide the optional error handler root options`onUncaughtError`, `onCaughtError`and`onRecoverableError`:
379
+
ডিফল্ট অনুযায়ী, React সমস্ত error console এ log করে। নিজস্ব error reporting বাস্তবায়ন করতে, আপনি ঐচ্ছিক error handler root option`onUncaughtError`, `onCaughtError`এবং`onRecoverableError` প্রদান করতে পারেনঃ
0 commit comments