react-crossroads
Version:
Client side router for web applications built with React and utilizing the Flux architecture. The backing routing engine is CrossroadsJs.
19 lines (13 loc) • 323 B
JavaScript
var RouteChain;
RouteChain = (function() {
function RouteChain(path, chain, route) {
this.path = path;
this.chain = chain;
this.route = route;
}
RouteChain.prototype.makePath = function(params) {
return this.route.interpolate(params);
};
return RouteChain;
})();
module.exports = RouteChain;