create-root by nafistiham · Pull Request #50 · reactjs/bn.react.dev

@nafistiham

@nafistiham

@nafistiham nafistiham changed the title create-root-wip-20% create-root

Jun 1, 2023

@github-actions

Size changes

Details

📦 Next.js Bundle Analysis for react-dev

This analysis was generated by the Next.js Bundle Analysis action. 🤖

This PR introduced no changes to the JavaScript bundle! 🙌

@nafistiham

@nafistiham

@nafistiham

moshfiqrony

Choose a reason for hiding this comment

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

The translation is legit. I had some confusion so asked about it.

* The first time you call `root.render`, React will clear all the existing HTML content inside the React root before rendering the React component into it.
* আপনি যখন প্রথম বারের মত `root.render` কল করবেন, React এর রুটের ভিতরে কম্পোনেন্ট রেন্ডার করবার আগে থাকা সব HTML কনটেন্ট মুছে ফেলবে।

* If your root's DOM node contains HTML generated by React on the server or during the build, use [`hydrateRoot()`](/reference/react-dom/client/hydrateRoot) instead, which attaches the event handlers to the existing HTML.

Choose a reason for hiding this comment

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

Bhai ei line ta ki intentionally translate korenni?

@nafistiham

@nafistiham

moshfiqrony

Choose a reason for hiding this comment

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

LGTM