Skip to content

Glossary: React Basics

Root (createRoot)

Also written: createRoot, root.render

`createRoot(element)` makes the root: the place on the page where React takes charge. Everything inside `<div id="root">` belongs to React.

Where the book teaches it

Related terms

react and react-dom packagesStrictMode