createRootReplaces ReactDOM.render when the .render method is called and enables Concurrent Mode. function createRoot(container: Element | DocumentFragment, options?: RootOptions): Root;§createRoot(container: Element | DocumentFragment, options?: RootOptions): Root[src]§Parameters§container: Element | DocumentFragment[src]§options?: RootOptions optional[src]§Return Type§Root[src]