react-simple-loadable
v3.0.0
Published
Really simple React Loadable component
Downloads
732
Maintainers
Readme
React Simple Loadable HOC
This is simple loadable component based on Class React Component
Usage
import { loadable } from "react-simple-loadable";
loadable(async () => {
return (await import('./your-component')).YourNamedComponent
},
SkeletonComponent
)import { loadable } from "react-simple-loadable";
loadable(async () => {
return (await import('./your-component')).YourNamedComponent
},{
loader: SkeletonComponent,
extra: () => <div>renders with the lazy component</div>
})