From 38bf34ebd9826c6f69d97906282632fbd5cff06b Mon Sep 17 00:00:00 2001 From: Maximilian Hils Date: Thu, 27 Nov 2014 01:38:30 +0100 Subject: web++ --- web/src/js/app.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'web/src/js/app.js') diff --git a/web/src/js/app.js b/web/src/js/app.js index 4ee35d60..b5d50d34 100644 --- a/web/src/js/app.js +++ b/web/src/js/app.js @@ -1,5 +1,7 @@ $(function () { - window.app = React.renderComponent(ProxyApp, document.body); + ReactRouter.run(routes, function (Handler) { + React.render(, document.body); + }); var UpdateConnection = new Connection("/updates"); UpdateConnection.onmessage = function (message) { var m = JSON.parse(message.data); -- cgit v1.2.3