mirror of
https://github.com/wassname/generator-react-webpack.git
synced 2026-08-27 12:00:39 +08:00
Merge pull request #17 from ryan953/patch-1
Export `window.React` so that the react-devtools can find it.
This commit is contained in:
@@ -7,6 +7,9 @@
|
||||
var React = require('react/addons');
|
||||
var ReactTransitionGroup = React.addons.TransitionGroup;
|
||||
|
||||
// Export React so the devtools can find it
|
||||
(window !== window.top ? window.top : window).React = React;
|
||||
|
||||
// CSS
|
||||
require('../../styles/reset.css');
|
||||
require('../../styles/main.css');
|
||||
|
||||
Reference in New Issue
Block a user