createRoot
ReactRoot
createRoot(
Creates a React root for rendering into a DOM node (React 18+).
This is the recommended way to render React applications in React 18+.
Example:
final container = Document.getElementById('root')!;
final root = createRoot(container);
root.render(myApp);
Implementation
ReactRoot createRoot(JSObject container) => _reactDomCreateRoot(container);