mirror of
https://github.com/wassname/generator-react-webpack.git
synced 2026-10-29 13:11:10 +08:00
feat: added react-router
Signed-off-by: Simon Bailey <simon@newtriks.com>
This commit is contained in:
1 parent
3b27c1802a
commit
967706e942
10 files changed
+85
-41
No files matched your search
@@ -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 %>;
|
||||
Reference in new issue
Block a user