Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions src/browser/ui/React.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ var React = {
Component: ReactComponent,
DOM: ReactDOM,
PropTypes: ReactPropTypes,
React: null,
initializeTouchEvents: function(shouldUseTouch) {
EventPluginUtils.useTouchEvents = shouldUseTouch;
},
Expand All @@ -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 (
Expand Down