Skip to content

luqin/react-router-loader

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

react-router-loader

Based on react-router-proxy-loader and react-proxy-loader, adapted for react-router route handlers.

NPM version Build Status

Dependency Status devDependency Status peerDependency Status

Installation

npm install react-router-loader --save-dev

Dependencies

Which version to use depends on your version of react-router

react-router react-router-loader
0.13.x 0.3.x
1.x 0.4.x
2.x and above 0.5.x

Usage

Documentation: Using loaders

Use when requiring the component for a Route, and the component will only be loaded when the route is rendered.

<Route component={require('react-router!./Component')} />

Named chunks

You can give the chunk a name with the name query parameter:

<Route component={require('react-router?name=chunkName!./Component')} />

License

MIT (http://www.opensource.org/licenses/mit-license.php)

About

Dynamically load react-router components on-demand, based on react-proxy-loader

Resources

Stars

Watchers

Forks

Packages

No packages published