Reference

createRoot

Creates a root that renders React-compatible nodes into a DOM container.

Signature

function createRoot(container: Element, options?: RootOptions): Root