diff --git a/{{cookiecutter.project_shortname}}/src/lib/LazyLoader.js b/{{cookiecutter.project_shortname}}/src/lib/LazyLoader.js index 49dee21..f367b20 100644 --- a/{{cookiecutter.project_shortname}}/src/lib/LazyLoader.js +++ b/{{cookiecutter.project_shortname}}/src/lib/LazyLoader.js @@ -1 +1,3 @@ -export const {{cookiecutter.component_name}} = React.lazy(() => import(/* webpackChunkName: "{{cookiecutter.component_name}}" */ './fragments/{{cookiecutter.component_name}}.react')); \ No newline at end of file +import React from 'react'; + +export const {{cookiecutter.component_name}} = React.lazy(() => import(/* webpackChunkName: "{{cookiecutter.component_name}}" */ './fragments/{{cookiecutter.component_name}}.react'));