From 9579909492ac9d80cfec0d9c9858ce7d89760aa1 Mon Sep 17 00:00:00 2001 From: Justin Gordon Date: Fri, 5 Sep 2014 17:43:38 -1000 Subject: [PATCH] Enable React devtools by exposing React (setting window.React) --- examples/flux-chat/js/app.js | 1 + 1 file changed, 1 insertion(+) diff --git a/examples/flux-chat/js/app.js b/examples/flux-chat/js/app.js index 0b2e3426e22bc2..b07baaedb2a652 100644 --- a/examples/flux-chat/js/app.js +++ b/examples/flux-chat/js/app.js @@ -18,6 +18,7 @@ var ChatApp = require('./components/ChatApp.react'); var ChatExampleData = require('./ChatExampleData'); var ChatWebAPIUtils = require('./utils/ChatWebAPIUtils'); var React = require('react'); +window.React = React; // export for http://fb.me/react-devtools ChatExampleData.init(); // load example data into localstorage