Using a string as loader for importComponent
is deprecated and will be removed in a future major release.
- importComponent('./my-cool-component');
+ importComponent(() => import('./my-cool-component'));
Using a string to resolve the module of importComponent
is deprecated and will be removed in a future major release.
- importComponent(() => import('./my-cool-component'), 'MyCoolComponent');
+ importComponent(() => import('./my-cool-component'), namespace => namespace.MyCoolComponent);
Static rendering is deprecated and will be removed in a future major release.
react-helmet
is deprecated and has been replaced with react-helmet-async
. If you see this message, either your code or some of your dependencies tried to import from react-helmet
. Please replace all instances of react-helmet
with react-helmet-async
.
- import { Helmet } from 'react-helmet';
+ import { Helmet } from 'react-helmet-async';
Also: react-helmet-async
no longer provides a default export. Therefore you may need to change the imports too:
- import Helmet from 'react-helmet-async';
+ import { Helmet } from 'react-helmet-async';