The recommended Code Splitting library for React ✂️✨
The recommended Code Splitting library for React ✂️✨
React code splitting made easy. Reduce your bundle size without stress ✂️✨.
npm install @loadable/componentSee the documentation at loadable-components.com for more information about using Loadable Components!
Quicklinks to some of the most-visited pages:
import loadable from '@loadable/component'
const OtherComponent = loadable(() => import('./OtherComponent'))
function MyComponent() {
return (
)
}Loadable Components is an MIT-licensed open source project. It's an independent project with ongoing development made possible thanks to the support of these awesome backers. If you'd like to join them, please consider:
Licensed under the MIT License, Copyright © 2017-present Greg Bergé.
See LICENSE for more information.
Customizable webpackChunkName
Use of ChunkExtractor outside of Express server
Preload css only with getLinkTags
How to get loadable-stats.json in Vite?
Potential change to support `lazy` with SSR
TypeScript Type Compatibility Issues with React 19.0.0
Why is the cjs suffix not supported?
Loading state is always true on first render
Type is lost when using loadable in generic
Type declarations in @types/loadable__component are broken when using typescript's moduleResolution:nodenext option