Skip to content
This repository has been archived by the owner on Jan 22, 2020. It is now read-only.

Commit

Permalink
Use react-router browserHistory in example
Browse files Browse the repository at this point in the history
  • Loading branch information
remarkablemark committed May 13, 2016
1 parent 0c816b7 commit 9c06d40
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions example/public/routes.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,15 @@
'use strict';

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

import Layout from './views/layout.jsx';
import ListPage from './views/list.jsx';
import DetailPage from './views/detail.jsx';
import Error404 from './views/404.jsx';

var routes = module.exports = (
<Router>
module.exports = (
<Router history={browserHistory}>
<Route path='/' component={Layout}>
<IndexRoute component={ListPage} />
<Route path='/movie/:id' component={DetailPage} />
Expand Down

0 comments on commit 9c06d40

Please sign in to comment.