gregberge/loadable-components

The recommended Code Splitting library for React ✂️✨

JavaScript

7,796

516 commits

updated May 18, 2025

See the code

README

loadable-components

React code splitting made easy. Reduce your bundle size without stress ✂️✨.

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.

code-splitting
dynamic-import
react
react-async-component
react-loadable
react-router
server-side-rendering
ssr
webpack

gregberge/loadable-components

The recommended Code Splitting library for React ✂️✨

JavaScript

7,796

516 commits

updated May 18, 2025

See the code

README

loadable-components

React code splitting made easy. Reduce your bundle size without stress ✂️✨.

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.

code-splitting
dynamic-import
react
react-async-component
react-loadable
react-router
server-side-rendering
ssr
webpack

Project health

Overall

2.5/10

Maintained

0/10

Code review

3/10
OpenSSF Scorecard

Significant stargazers

(top 24 of 61)

Bogdan Chadkin

1,091 followers · starred Jun 2019

jongleberry

2,417 followers · starred Oct 2020

Quinn Slack

980 followers · starred May 2019

Phil Pluckthun

1,853 followers · starred Jun 2018