diff --git a/src/browser/ui/React.js b/src/browser/ui/React.js index a524b84ddd3fb..f15183463ad58 100644 --- a/src/browser/ui/React.js +++ b/src/browser/ui/React.js @@ -57,6 +57,7 @@ var React = { Component: ReactComponent, DOM: ReactDOM, PropTypes: ReactPropTypes, + React: null, initializeTouchEvents: function(shouldUseTouch) { EventPluginUtils.useTouchEvents = shouldUseTouch; }, @@ -81,6 +82,9 @@ var React = { __spread: assign }; +// Allows for destructuring "React" and friends off this module's exports. +React.React = React; + // Inject the runtime into a devtools global hook regardless of browser. // Allows for debugging when the hook is injected on the page. if (