Skip to content

Commit

Permalink
Add a shim for React 16.0.0 future compatibility (#11388)
Browse files Browse the repository at this point in the history
  • Loading branch information
gaearon authored Oct 27, 2017
1 parent 55b3172 commit cc54b6f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/react/src/React.js
Original file line number Diff line number Diff line change
Expand Up @@ -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: {},
});
}

Expand Down

0 comments on commit cc54b6f

Please sign in to comment.