loadable-components

React code splitting made easy ✂️✨

Github星跟踪图

License
npm package
npm downloads
Build Status
Code style
Dependencies
DevDependencies
Small size

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.

主要指标

概览
名称与所有者gregberge/loadable-components
主编程语言JavaScript
编程语言JavaScript (语言数: 3)
平台
许可证MIT License
所有者活动
创建于2017-06-23 07:51:02
推送于2025-05-18 01:23:54
最后一次提交
发布数74
最新版本名称v5.16.7 (发布于 2025-05-18 11:20:15)
第一版名称v0.1.0 (发布于 2017-06-23 16:00:41)
用户参与
星数7.8k
关注者数49
派生数388
提交数526
已启用问题?
问题数612
打开的问题数26
拉请求数219
打开的拉请求数19
关闭的拉请求数163
项目设置
已启用Wiki?
已存档?
是复刻?
已锁定?
是镜像?
是私有?