File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
packages/react-dom/src/client Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -152,7 +152,7 @@ function createRoot(
152152 options ?: CreateRootOptions ,
153153) : RootType {
154154 if ( __DEV__ ) {
155- if ( ! Internals . usingClientEntryPoint ) {
155+ if ( ! Internals . usingClientEntryPoint && ! __UMD__ ) {
156156 console . error (
157157 'You are importing createRoot from "react-dom" which is not supported. ' +
158158 'You should instead import it from "react-dom/client".' ,
@@ -168,7 +168,7 @@ function hydrateRoot(
168168 options ?: HydrateRootOptions ,
169169) : RootType {
170170 if ( __DEV__ ) {
171- if ( ! Internals . usingClientEntryPoint ) {
171+ if ( ! Internals . usingClientEntryPoint && ! __UMD__ ) {
172172 console . error (
173173 'You are importing hydrateRoot from "react-dom" which is not supported. ' +
174174 'You should instead import it from "react-dom/client".' ,
You can’t perform that action at this time.
0 commit comments