Skip to content

karolisgrinkevicius-home24/loadable-components

 
 

Repository files navigation

loadable-components

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

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

npm install @loadable/component

See the documentation at smooth-code.com/open-source/loadable-components 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:

Gold Sponsors

Gold Sponsors are those who have pledged $100/month and more to loadable.

gold-sponsors

License

Licensed under the MIT License, Copyright © 2017-present Smooth Code.

See LICENSE for more information.

About

React code splitting made easy ✂️✨

Resources

License

Code of conduct

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 99.9%
  • CSS 0.1%