Skip to content

JoV5/lazy-load-react

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Preconditions

  1. use webpack2
  2. support Promise

How

npm install lazy-load-react

import lazyme from 'lazy-load-react';

const HomePage = lazyme(() => System.import('./HomePage'));

<Route exact path="/" component={HomePage}/>

Examples

react-router App

react-cnode App

Releases

No releases published

Packages

No packages published