I have server side rendering app and using react-router for routing. I was using Router.Run Before as the method is no more I am using Router.Match
I have defined my router in entry module defined below and it will go to Layout component to look for route paths:
import { Router, Route, IndexRoute, hashHistory } from "react-router";
ReactDOM.render(
//
,
document.getElementById('app'));
Layout component will bind the path defined in router to different components in Layout Component
import { Link } from "react-router";
class Layout extends React.Component(
render(){
return(
{this.props.children}
)
}
);
You can define any action for your route components.its working fine for me