ff-stream-web

git clone git://archive.git.mtrnord.blog/MTRNord/ff-stream-web.git
Log | Files | Refs | README | LICENSE

commit fcfae1331facd23095e007e3b3095c42a735b7c7
parent 48aa12e142585a9e59bdd2be462a9e6dc5344a6a
Author: Konstantin Tarkus <hello@tarkus.me>
Date:   Wed, 17 Sep 2014 10:40:46 +0400

Add support of React Dev Tools

Diffstat:
Msrc/app.jsx | 3+++
1 file changed, 3 insertions(+), 0 deletions(-)

diff --git a/src/app.jsx b/src/app.jsx @@ -7,6 +7,9 @@ var React = require('react'); var {Routes, Route} = require('react-router'); +// Export React so the devtools can find it +(window !== window.top ? window.top : window).React = React; + React.renderComponent( <Routes location="history"> <Route name="app" path="/" handler={require('./layouts/Default')}>