Add a shim for React 16.0.0 future compatibility (#11388)

This commit is contained in:
Dan Abramov
2017-10-27 17:38:59 +01:00
committed by GitHub
parent 55b3172f1d
commit cc54b6f48a
+3
View File
@@ -57,6 +57,9 @@ if (__DEV__) {
Object.assign(React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED, {
// These should not be included in production.
ReactDebugCurrentFrame: require('./ReactDebugCurrentFrame'),
// Shim for React DOM 16.0.0 which still destructured (but not used) this.
// TODO: remove in React 17.0.
ReactComponentTreeHook: {},
});
}