From cc54b6f48a532bf2073e8f7d888c6a3fcf416b63 Mon Sep 17 00:00:00 2001 From: Dan Abramov Date: Fri, 27 Oct 2017 17:38:59 +0100 Subject: [PATCH] Add a shim for React 16.0.0 future compatibility (#11388) --- packages/react/src/React.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/packages/react/src/React.js b/packages/react/src/React.js index fc718d8c9a..9c34f74d1f 100644 --- a/packages/react/src/React.js +++ b/packages/react/src/React.js @@ -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: {}, }); }