@samitouri / QOS-React-2 / commits / cc54b6f48a

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

Dan Abramov committed Oct 27, 2017 at 17:38 UTC cc54b6f48a532bf2073e8f7d888c6a3fcf416b63
1 file changed +3
packages/react/src/React.js
+3
@@ -57,6 +57,9 @@ if (__DEV__) {
57 Object.assign(React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED, {
58 // These should not be included in production.
59 ReactDebugCurrentFrame: require('./ReactDebugCurrentFrame'),
60 + // Shim for React DOM 16.0.0 which still destructured (but not used) this.
61 + // TODO: remove in React 17.0.
62 + ReactComponentTreeHook: {},
63 });
64 }
65