@@ -36,7 +36,7 @@ let useRef;
36
36
let useState ;
37
37
let act ;
38
38
39
- if ( is ( '>=15.5 || ^16.0.0-alpha || ^16.3.0-alpha' ) ) {
39
+ if ( is ( '>=15.5 || ^16.0.0-alpha || ^16.3.0-alpha || ^17.0.0-rc.0 ' ) ) {
40
40
// eslint-disable-next-line import/no-extraneous-dependencies
41
41
createClass = require ( 'create-react-class' ) ;
42
42
} else {
@@ -50,7 +50,7 @@ if (is('^0.13.0')) {
50
50
( { renderToString } = require ( 'react-dom/server' ) ) ;
51
51
}
52
52
53
- if ( is ( '^16.0.0-0 || ^16.3.0-0' ) ) {
53
+ if ( is ( '^16.0.0-0 || ^16.3.0-0 || ^17.0.0-rc.0 ' ) ) {
54
54
( { createPortal } = require ( 'react-dom' ) ) ;
55
55
} else {
56
56
createPortal = null ;
@@ -62,13 +62,13 @@ if (is('>=15.3')) {
62
62
PureComponent = null ;
63
63
}
64
64
65
- if ( is ( '^16.2.0-0' ) ) {
65
+ if ( is ( '^16.2.0-0 || ^17.0.0-rc.0 ' ) ) {
66
66
( { Fragment } = require ( 'react' ) ) ;
67
67
} else {
68
68
Fragment = null ;
69
69
}
70
70
71
- if ( is ( '^16.3.0-0' ) ) {
71
+ if ( is ( '^16.3.0-0 || ^17.0.0-rc.0 ' ) ) {
72
72
( {
73
73
createContext,
74
74
createRef,
@@ -84,7 +84,7 @@ if (is('^16.3.0-0')) {
84
84
AsyncMode = null ;
85
85
}
86
86
87
- if ( is ( '^16.9.0-0' ) ) {
87
+ if ( is ( '^16.9.0-0 || ^17.0.0-rc.0 ' ) ) {
88
88
( { Profiler } = require ( 'react' ) ) ;
89
89
} else if ( is ( '^16.4.0-0' ) ) {
90
90
( {
@@ -94,7 +94,7 @@ if (is('^16.9.0-0')) {
94
94
Profiler = null ;
95
95
}
96
96
97
- if ( is ( '^16.6.0-0' ) ) {
97
+ if ( is ( '^16.6.0-0 || ^17.0.0-rc.0 ' ) ) {
98
98
( {
99
99
Suspense,
100
100
lazy,
@@ -122,7 +122,7 @@ if (is('^16.9.0-0')) {
122
122
createRoot = null ;
123
123
}
124
124
125
- if ( is ( '^16.8.0-0' ) ) {
125
+ if ( is ( '^16.8.0-0 || ^17.0.0-rc.0 ' ) ) {
126
126
( {
127
127
useCallback,
128
128
useContext,
0 commit comments