loadable-components

React code splitting made easy ✂️✨

Github stars Tracking Chart

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.

Main metrics

Overview
Name With Ownergregberge/loadable-components
Primary LanguageJavaScript
Program languageJavaScript (Language Count: 3)
Platform
License:MIT License
所有者活动
Created At2017-06-23 07:51:02
Pushed At2024-04-20 07:11:41
Last Commit At
Release Count72
Last Release Namev5.16.5 (Posted on 2024-04-20 17:11:38)
First Release Namev0.1.0 (Posted on 2017-06-23 16:00:41)
用户参与
Stargazers Count7.8k
Watchers Count50
Fork Count388
Commits Count520
Has Issues Enabled
Issues Count610
Issue Open Count26
Pull Requests Count218
Pull Requests Open Count20
Pull Requests Close Count163
项目设置
Has Wiki Enabled
Is Archived
Is Fork
Is Locked
Is Mirror
Is Private