React code splitting made easy ✂️
Clone or download
Latest commit c94b4fa Jan 17, 2019

README.md

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 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>
  )
}

License

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

See LICENSE for more information.