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 @@ -152,7 +152,7 @@ function createRoot(
152
152
options ?: CreateRootOptions ,
153
153
) : RootType {
154
154
if ( __DEV__ ) {
155
- if ( ! Internals . usingClientEntryPoint ) {
155
+ if ( ! Internals . usingClientEntryPoint && ! __UMD__ ) {
156
156
console . error (
157
157
'You are importing createRoot from "react-dom" which is not supported. ' +
158
158
'You should instead import it from "react-dom/client".' ,
@@ -168,7 +168,7 @@ function hydrateRoot(
168
168
options ?: HydrateRootOptions ,
169
169
) : RootType {
170
170
if ( __DEV__ ) {
171
- if ( ! Internals . usingClientEntryPoint ) {
171
+ if ( ! Internals . usingClientEntryPoint && ! __UMD__ ) {
172
172
console . error (
173
173
'You are importing hydrateRoot from "react-dom" which is not supported. ' +
174
174
'You should instead import it from "react-dom/client".' ,
You can’t perform that action at this time.
0 commit comments