Skip to content

grrowl/react-router-proxy-loader

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

react-router-proxy-loader

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

Installation

npm install react-router-proxy-loader

Dependencies

Right now, this library depends on bluebird for promises, which is an amazing library. May be a little heavy, though, so feel free to send a PR if you'd rather it use something else.

Usage

Documentation: Using loaders

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

<Route name="user" handler={require('react-router-proxy!./User.jsx')} />

Note that willTransitionTo and willTransitionFrom will still be called on the dynamically-loaded 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

Languages

  • JavaScript 100.0%