File tree 1 file changed +2
-2
lines changed
packages/react-dom/src/client
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -149,7 +149,7 @@ function createRoot(
149
149
options ?: CreateRootOptions ,
150
150
) : RootType {
151
151
if ( __DEV__ ) {
152
- if ( ! Internals . usingClientEntryPoint ) {
152
+ if ( ! Internals . usingClientEntryPoint && ! __UMD__ ) {
153
153
console . error (
154
154
'You are importing createRoot from "react-dom" which is not supported. ' +
155
155
'You should instead import it from "react-dom/client".' ,
@@ -165,7 +165,7 @@ function hydrateRoot(
165
165
options ?: HydrateRootOptions ,
166
166
) : RootType {
167
167
if ( __DEV__ ) {
168
- if ( ! Internals . usingClientEntryPoint ) {
168
+ if ( ! Internals . usingClientEntryPoint && ! __UMD__ ) {
169
169
console . error (
170
170
'You are importing hydrateRoot from "react-dom" which is not supported. ' +
171
171
'You should instead import it from "react-dom/client".' ,
You can’t perform that action at this time.
0 commit comments