mirror of
https://github.com/react-webpack-generators/generator-react-webpack.git
synced 2025-12-08 18:01:59 +00:00
hook React so the devtools can find it
This commit is contained in:
parent
c6e140300e
commit
715a0565c2
@ -14,6 +14,10 @@
|
||||
<div id="content">
|
||||
<h1>If you can see this, something is broken (or JS is not enabled)!!.</h1>
|
||||
</div>
|
||||
|
||||
<script>
|
||||
__REACT_DEVTOOLS_GLOBAL_HOOK__ = parent.__REACT_DEVTOOLS_GLOBAL_HOOK__
|
||||
</script>
|
||||
<script type="text/javascript" src="assets/main.js"></script>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user