mirror of
https://github.com/wassname/generator-react-webpack.git
synced 2026-09-09 11:22:44 +08:00
feat: added react-router
Signed-off-by: Simon Bailey <simon@newtriks.com>
This commit is contained in:
@@ -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