gregberge/loadable-components
gregberge/loadable-components has 7,795 GitHub stars and 385 forks. GitHot measured 0 stars in 24 hours and +1 in 7 days. Last checked 2026-11-07 16:58 UTC. Last push 2025-05-18.
推荐用于 React 的代码分割库 ✂️✨
实测星标增长
- 24小时
- 0
- 7天
- +1
- 15天
- 更新延迟
- 1个月
- 更新延迟
各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。
README.md
原文React code splitting made easy. Reduce your bundle size without stress ✂️✨.
npm install @loadable/component
Docs
See the documentation at loadable-components.com for more information about using Loadable Components!
Quicklinks to some of the most-visited pages:
Example
import loadable from '@loadable/component'
const OtherComponent = loadable(() => import('./OtherComponent'))
function MyComponent() {
return (
<div>
<OtherComponent />
</div>
)
}
Supporting Loadable Components
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:
License
Licensed under the MIT License, Copyright © 2017-present Greg Bergé.
See LICENSE for more information.