alpersonalwebsite / react-loadable-vs-lazy

react-loadable vs React.lazy vs @loadable/component
MIT License
0 stars 0 forks source link

Dynamic imports with react-loadable, @loadable/component and React.lazy

Greenkeeper badge CircleCI License: MIT

This is an easy, basic and raw (no styles attached) example of HOW to dynamically import Components.

Installation

npm install

Running the dev server

npm start

Description

Option 1: react-loadable

Option 2: @loadable/component

Option 3: React.lazy()