Skip to content
The recommended Code Splitting library for React ✂️
JavaScript Other
Branch: master
Clone or download
Latest commit 9e00f2e Jan 9, 2020
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.github chore: add stale bot Jan 9, 2020
examples feat: avoid synchronous loading on client if options.ssr is false (#346) Jan 9, 2020
packages chore: fix .npmignore & ignore .size-snapshot.json Jan 9, 2020
resources chore: update logo Dec 25, 2019
scripts dx: add script to release to git tags Dec 20, 2019
website chore: update website deps Jan 9, 2020
.eslintignore feat: add codemods to migrate from react-loadable (#463) Jan 9, 2020
.eslintrc.json chore: upgrade dependencies (#422) Aug 28, 2019
.gitignore
.npmignore chore: fix .npmignore & ignore .size-snapshot.json Jan 9, 2020
.nvmrc chore: use node 10 Oct 31, 2018
.prettierignore feat: add codemods to migrate from react-loadable (#463) Jan 9, 2020
.prettierrc
.travis.yml tests: run on Node v10 & v12 Jan 9, 2020
BACKERS.md chore: update funding Dec 6, 2019
CHANGELOG.md v5.12.0 Jan 9, 2020
CODE_OF_CONDUCT.md chore: update funding Dec 6, 2019
CONTRIBUTING.md Merge pull request #486 from hedgepigdaniel/feat/git-release Jan 9, 2020
LICENSE
README.md docs: fix links in readme Dec 6, 2019
babel.config.js
lerna.json v5.12.0 Jan 9, 2020
netlify.toml
package.json chore: upgrade deps Jan 9, 2020
yarn.lock tests: fix codemod tests Jan 9, 2020

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 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.

You can’t perform that action at this time.