react-with-suspense-lazy
React lazy import with suspense. Easy alternative to https://github.com/jamiebuilds/react-loadable
Enable webpack chunks split.
Installation
Using npm:
$ npm install --save react-with-suspense-lazy
Or yarn:
$ yarn add react-with-suspense-lazy
Usage
index.js
const MyComponent = ;
with loading fallback like spinners, etc...
; const MyComponent = ;
Feedback
Let me know what do you think about!
Enjoy it? Star this project! :D
Contributors
See Contributors.