@@ -27,7 +27,6 @@ import {createRef} from './ReactCreateRef';
27
27
import { forEach , map , count , toArray , only } from './ReactChildren' ;
28
28
import {
29
29
createElement as createElementProd ,
30
- createFactory as createFactoryProd ,
31
30
cloneElement as cloneElementProd ,
32
31
isValidElement ,
33
32
} from './ReactElement' ;
@@ -63,7 +62,6 @@ import {
63
62
} from './ReactHooks' ;
64
63
import {
65
64
createElementWithValidation ,
66
- createFactoryWithValidation ,
67
65
cloneElementWithValidation ,
68
66
} from './ReactElementValidator' ;
69
67
import { createServerContext } from './ReactServerContext' ;
@@ -78,9 +76,6 @@ const createElement: any = __DEV__
78
76
const cloneElement : any = __DEV__
79
77
? cloneElementWithValidation
80
78
: cloneElementProd ;
81
- const createFactory : any = __DEV__
82
- ? createFactoryWithValidation
83
- : createFactoryProd ;
84
79
85
80
const Children = {
86
81
map,
@@ -126,8 +121,6 @@ export {
126
121
isValidElement ,
127
122
ReactVersion as version ,
128
123
ReactSharedInternals as __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED ,
129
- // Deprecated behind disableCreateFactory
130
- createFactory ,
131
124
// Concurrent Mode
132
125
useTransition ,
133
126
startTransition ,
0 commit comments