← BYTES
React.js·Starter·Ref: 4.1.12

What does `ReactDOM.createRoot(container).render(<App />)` do?

Have a question about this video? Mention reference 4.1.12 when you contact us.

a.It mounts the React component tree into a real DOM node so it actually appears on the page
b.It compiles JSX into CSS
c.It deletes the App component from memory
d.It is only used for server-side rendering, never in the browser
This is the entry point that connects your React component tree to an actual DOM node in the page, so React can start managing and rendering into that part of the real DOM.

Find this on YouTube & Instagram

Every BYTES video is tagged with its reference number and topic — search any of these on YouTube or Instagram to find this one:

#BYTES#BYTES4112#Reactjs