Skip to content

Commit e3a4186

Browse files
committed
Use browserHistory from React Router 2 instead of createHashHistory for PIG, per console warning
1 parent 2bf53de commit e3a4186

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/parse-interface-guide/routes.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,12 @@
55
* This source code is licensed under the license found in the LICENSE file in
66
* the root directory of this source tree.
77
*/
8-
import createHashHistory from 'history/lib/createHashHistory';
98
import PIG from 'parse-interface-guide/PIG.react';
109
import React from 'react';
11-
import { Router, Route } from 'react-router';
10+
import { browserHistory, Router, Route } from 'react-router';
1211

1312
module.exports = (
14-
<Router history={createHashHistory()}>
13+
<Router history={browserHistory}>
1514
<Route path='/' component={PIG} />
1615
<Route path='/:component' component={PIG} />
1716
</Router>

0 commit comments

Comments
 (0)