Use this component for lazy importing other components.
Async function for that resolves to an element.
Optional
Element to show until the promise resolves.
Error handler which is executed if the promise is rejected.
<Lazy else='loading...'>{() => import('./my-component').then(m => <m.MyComponent/>)}</Lazy> Copy
<Lazy else='loading...'>{() => import('./my-component').then(m => <m.MyComponent/>)}</Lazy>
Use this component for lazy importing other components.