feat: added react-router

Signed-off-by: Simon Bailey <simon@newtriks.com>
This commit is contained in:
Simon Bailey
2014-09-26 14:23:08 +01:00
parent 3b27c1802a
commit 967706e942
10 changed files with 85 additions and 41 deletions
+3 -3
View File
@@ -27,7 +27,7 @@ var <%= scriptAppName %> = React.createClass({
);
}
});
React.renderComponent(<<%= scriptAppName %> />, document.getElementById('content')); // jshint ignore:line
<% if (!reactRouter) {
%>React.renderComponent(<<%= scriptAppName %> />, document.getElementById('content')); // jshint ignore:line
<% } %>
module.exports = <%= scriptAppName %>;