foxhound87
5/7/2016 - 8:04 PM

Server Side Rendering with React Router [EP.04] /src/routes.jsx

Server Side Rendering with React Router [EP.04] /src/routes.jsx

import React from 'react';
import { Route, IndexRoute } from 'react-router';

// Components
import Layout from './containers/Layout';
import Home from './containers/Home';
import Test from './containers/Test';

export default (
  <Route path="/" component={Layout}>
    <IndexRoute component={Home} />
    <Route path="test" component={Test} />
  </Route>
);