From 86b6cd97b043e718f847f86dd89a7d08dc500cd2 Mon Sep 17 00:00:00 2001 From: Andres Suarez Date: Sat, 21 Feb 2015 01:46:02 -0500 Subject: [PATCH] Add "React.React = React" --- src/browser/ui/React.js | 4 ++++ 1 file changed, 4 insertions(+) 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 (