mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
Prettier
This commit is contained in:
+3
-1
@@ -772,7 +772,9 @@ type RootOptions = {
|
||||
};
|
||||
|
||||
function createRoot(container: DOMContainer, options?: RootOptions): ReactRoot {
|
||||
const functionName = enableStableConcurrentModeAPIs ? 'createRoot' : 'unstable_createRoot';
|
||||
const functionName = enableStableConcurrentModeAPIs
|
||||
? 'createRoot'
|
||||
: 'unstable_createRoot';
|
||||
invariant(
|
||||
isValidContainer(container),
|
||||
'%s(...): Target container is not a DOM element.',
|
||||
|
||||
Reference in New Issue
Block a user