A router to use with Flux and React.
Flux Router is available on both bower and npm. You should get it from wherever you're using flux from, or if you're using something like browserify to compile your code you should get it from npm, so you can
require the module directly.
bower install flux-router
npm install flux-router
If you're using flux-router from npm, you should require the module in first. If you're using it from bower,
fluxRouter will be available in the global scope.
var fluxRouter = ; // only needed for npmvar router = Dispatcher;
You should instantiate Flux Router with your app's dispatcher, to avoid having more than one dispatcher per application.
If you wish to test Flux Router yourself, you will need to run
And if you don't have
gulp installed, also run
npm install gulp -g
Once gulp is installed, you can then run
Tests are executed in Chrome, using Karma and Jasmine.