FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

iAmServerless/loadable-components: React code splitting made easy ✂️✨ · GitHub

 
 

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

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

License

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

See LICENSE for more information.

About

React code splitting made easy ✂️✨

Resources

Code of conduct

Contributing

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages


Back | FazBrowse Home | New Git URL