diff --git a/packages/strapi-helper-plugin/lib/internals/generators/component/stateless.js.hbs b/packages/strapi-helper-plugin/lib/internals/generators/component/stateless.js.hbs index 2184b2ae2b..640058e587 100755 --- a/packages/strapi-helper-plugin/lib/internals/generators/component/stateless.js.hbs +++ b/packages/strapi-helper-plugin/lib/internals/generators/component/stateless.js.hbs @@ -15,7 +15,7 @@ import messages from './messages'; import styles from './styles.scss'; {{/if}} -function {{ properCase name }}() { +const {{ properCase name }} = () => { return ( {{#if wantCSS}}
diff --git a/packages/strapi-helper-plugin/package.json b/packages/strapi-helper-plugin/package.json index 9446a85d55..31f9ab71c8 100755 --- a/packages/strapi-helper-plugin/package.json +++ b/packages/strapi-helper-plugin/package.json @@ -115,4 +115,4 @@ "webpack-hot-middleware": "^2.18.2", "whatwg-fetch": "^2.0.3" } -} \ No newline at end of file +}