Reference
createRoot
Creates a root that renders React-compatible nodes into a DOM container.
Signature
function createRoot(container: Element, options?: RootOptions): RootReference
Creates a root that renders React-compatible nodes into a DOM container.
function createRoot(container: Element, options?: RootOptions): Root