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
On the server, call `renderToString`to render your app to HTML.
29
+
আপনার অ্যাপকে HTML এ রেন্ডার করতে, সার্ভার থেকে `renderToString`কল করুন।
30
30
31
31
```js
32
32
import { renderToString } from'react-dom/server';
33
33
34
34
consthtml=renderToString(<App />);
35
35
```
36
36
37
-
On the client, call [`hydrateRoot`](/reference/react-dom/client/hydrateRoot) to make the server-generated HTML interactive.
37
+
সার্ভার-জেনারেটেড HTML কে ইন্টার্যাক্টিভ করতে, ক্লায়েন্ট থেকে [`hydrateRoot`](/reference/react-dom/client/hydrateRoot) কল করুন।
38
38
39
-
[See more examples below.](#usage)
39
+
[নিচে আরো উদাহরণ দেখুন।](#usage)
40
40
41
-
#### Parameters {/*parameters*/}
41
+
#### প্যারামিটার্স {/*parameters*/}
42
42
43
-
* `reactNode`: A React node you want to render to HTML. For example, a JSX node like `<App />`.
43
+
* `reactNode`: একটি React node যাকে আপনি HTML এ রেন্ডার করতে চান। উদাহরণস্বরূপ,`<App />` এর মতো একটি JSX node ।
44
44
45
-
* **optional** `options`: An object for server render.
46
-
* **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 passed to [`hydrateRoot`.](/reference/react-dom/client/hydrateRoot#parameters)
45
+
* **অপশনাল** `options`: সার্ভার রেন্ডারের জন্য একটি অবজেক্ট।
46
+
* **অপশনাল** `identifierPrefix`: একটি string prefix (উপসর্গ) যেটি React [`useId`](/reference/react/useId) এর দ্বারা জেনারেট করা id এর সঙ্গে ব্যবহার করে। একই পেজে একাধিক root ব্যবহারের সময় আইডির সাথে আইডির সংঘর্ষ এড়াতে এটি উপকারে আসে। এটি [`hydrateRoot`](/reference/react-dom/client/hydrateRoot#parameters) এর কাছে পাস করা prefix এর অবশ্যই অনুরূপ হতে হবে।
0 commit comments