mirror of
https://github.com/wassname/generator-react-webpack.git
synced 2026-09-09 11:22:44 +08:00
Update to React 0.12.2
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
'use strict';
|
||||
|
||||
var React = require('react/addons');
|
||||
<% if (stylesLanguage === 'css') { %>require('../../styles/<%= classedName %>.css');<% } %>
|
||||
<% if (stylesLanguage === 'sass') { %>require('../../styles/<%= classedName %>.sass');<% } %>
|
||||
<% if (stylesLanguage === 'less') { %>require('../../styles/<%= classedName %>.less');<% } %>
|
||||
<% if (stylesLanguage === 'stylus') { %>require('../../styles/<%= classedName %>.styl');<% } %>
|
||||
|
||||
var <%= classedName %> = React.createClass({
|
||||
render: function () {
|
||||
return (
|
||||
<div>
|
||||
<p>Content for <%= classedName %></p>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
});
|
||||
<% if (es6) { %>
|
||||
export default <%= classedName %>;
|
||||
<% } else { %>
|
||||
module.exports = <%= classedName %>;
|
||||
<% } %>
|
||||
|
||||
Reference in New Issue
Block a user