mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
Add a shim for React 16.0.0 future compatibility (#11388)
This commit is contained in:
@@ -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: {},
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user