mirror of
https://github.com/react-webpack-generators/generator-react-webpack.git
synced 2025-12-08 18:01:59 +00:00
This commit refactors the template structure for components to multiple different base templates based on the required styling options: - nostyle - with styles - with styles and css modules
16 lines
568 B
JavaScript
16 lines
568 B
JavaScript
import React from 'react';
|
|
import cssmodules from 'react-css-modules';
|
|
import styles from '<%= style.webpackPath %>';
|
|
|
|
const <%= component.className %> = () => (
|
|
<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);
|