mirror of
https://github.com/react-webpack-generators/generator-react-webpack.git
synced 2025-12-08 18:01:59 +00:00
Added directory options fallbacks for version 3 and below Prepared for inclusion of css modules
19 lines
587 B
JavaScript
19 lines
587 B
JavaScript
import React from 'react';
|
|
import cssmodules from 'react-css-modules';
|
|
import styles from '<%= style.webpackPath %>';
|
|
|
|
function <%= component.className %>() {
|
|
|
|
return (
|
|
<div className="<%= style.className %>" styleName="<%= style.className %>">
|
|
Please edit <%= component.path %><%= component.fileName %> to update this component!
|
|
</div>
|
|
);
|
|
}
|
|
|
|
<%= component.className %>.displayName = '<%= component.displayName %>';
|
|
<%= component.className %>.propTypes = {};
|
|
<%= component.className %>.defaultProps = {};
|
|
|
|
export default cssmodules(<%= component.className %>, styles);
|