Update stateless component generator

This commit is contained in:
cyril lopez 2017-09-30 18:15:10 +02:00
parent 224ac30bb4
commit c3ca82d9cc
2 changed files with 2 additions and 2 deletions

View File

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

View File

@ -115,4 +115,4 @@
"webpack-hot-middleware": "^2.18.2", "webpack-hot-middleware": "^2.18.2",
"whatwg-fetch": "^2.0.3" "whatwg-fetch": "^2.0.3"
} }
} }