Skip to content
The recommended Code Splitting library for React ✂️
JavaScript Other
Branch: master
Clone or download

Latest commit

pustovalov fix: use make-dir instead of mkdirp (#544)
Remove deprecated mkdirp module.
Latest commit 5a9c33b Apr 5, 2020

Files

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 fix: use make-dir instead of mkdirp (#544) Apr 5, 2020
resources chore: update logo Dec 25, 2019
scripts dx: add script to release to git tags Dec 20, 2019
website docs: fix ChunkExtractor.outputPath comment (#513) Mar 18, 2020
.eslintignore feat: add codemods to migrate from react-loadable (#463) Jan 9, 2020
.eslintrc.json chore: upgrade dependencies (#422) Aug 28, 2019
.gitignore chore: remove yarn.lock in examples Jul 15, 2019
.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 feat: stable version 1 Feb 2, 2018
.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 chore: update funding Dec 6, 2019
README.md docs: fix links in readme Dec 6, 2019
babel.config.js feat: support reactive dynamic loadable (#330) May 12, 2019
lerna.json v5.12.0 Jan 9, 2020
netlify.toml docs(website): add netlify.toml Dec 6, 2019
package.json chore: upgrade deps Jan 9, 2020
yarn.lock chore(deps): bump acorn from 5.7.3 to 5.7.4 (#537) Mar 14, 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.