Since react-router routes are components, creating nested routes is as simple as making one route a child of another in JSX.
Make the nested component:
class App extends React.Component { render(){ return(); }}
Change the path:
const Links = () => ;
Pass the props.children to the nested component:
const Home = (props) =>;const About = (props) =>Home
{props.children} ;const Contact = () =>About
{props.children};Contact
----------------
import React from 'react';import {hashHistory, Route, Router, Link} from 'react-router';// About is the child of home, to display the about, we need to access// props.childrenconst Home = (props) =>;const About = (props) =>Home
{props.children} ;const Contact = () =>About
{props.children};const Links = () => ;class App extends React.Component { render(){ return(Contact
); }}export default App;