Change stateless component generator to follow Airbnb recos

This commit is contained in:
cyril lopez 2017-10-09 19:11:22 +02:00
parent 5abb9c5fac
commit 2cc28a1cb2

View File

@ -15,7 +15,7 @@ import messages from './messages';
import styles from './styles.scss';
{{/if}}
const {{ properCase name }} = () => {
function {{ properCase name}}() {
return (
{{#if wantCSS}}
<div className={{curly true}}styles.{{ camelCase name }}{{curly}}>
@ -29,4 +29,8 @@ const {{ properCase name }} = () => {
);
}
{{ properCase name }}.proptypes = {
};
export default {{ properCase name }};