@samitouri / QOS-React / commits / 6efbbe0685

Prettier

Sophie Alpert committed Oct 29, 2018 at 12:29 UTC 6efbbe0685f971e773ba0bbd5c2db8729d7d1108
1 file changed +3 -1
packages/react-dom/src/client/ReactDOM.js
+3 -1
@@ -772,7 +772,9 @@ type RootOptions = {
772 };
773
774 function createRoot(container: DOMContainer, options?: RootOptions): ReactRoot {
775 - const functionName = enableStableConcurrentModeAPIs ? 'createRoot' : 'unstable_createRoot';
775 + const functionName = enableStableConcurrentModeAPIs
776 + ? 'createRoot'
777 + : 'unstable_createRoot';
778 invariant(
779 isValidContainer(container),
780 '%s(...): Target container is not a DOM element.',