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}}