From 07523973cb5bd25c43b86ff650b28b0047dc6e81 Mon Sep 17 00:00:00 2001 From: ivaosthu Date: Sun, 2 Nov 2014 21:03:39 +0100 Subject: [PATCH] using createFactory introduced in react 0.12.x --- public/js/app.jsx | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/public/js/app.jsx b/public/js/app.jsx index 2799a26b55..cd4c378df8 100644 --- a/public/js/app.jsx +++ b/public/js/app.jsx @@ -1,8 +1,8 @@ var React = require('react'); -var TabView = require('./components/TabView'); -var Menu = require('./components/Menu'); -var Unleash = require('./components/Unleash'); -var Strategy = require('./components/strategy/StrategyComponent'); +var TabView = React.createFactory(require('./components/TabView')); +var Menu = React.createFactory(require('./components/Menu')); +var Unleash = React.createFactory(require('./components/Unleash')); +var Strategy = React.createFactory(require('./components/strategy/StrategyComponent')); var tabPanes = [ { @@ -13,8 +13,6 @@ var tabPanes = [ name: "Strategies", content: new Strategy({}) } - - ]; React.render(