Skip to content
This repository was archived by the owner on Oct 26, 2018. It is now read-only.

Commit b5e0c35

Browse files
committed
Use browserHistory instead of hashHistory
1 parent 8012934 commit b5e0c35

File tree

1 file changed

+2
-2
lines changed
  • examples/basic/components

1 file changed

+2
-2
lines changed

examples/basic/components/App.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import React from 'react'
2-
import { Link, hashHistory } from 'react-router'
2+
import { Link, browserHistory } from 'react-router'
33

44
export default function App({ children }) {
55
return (
@@ -14,7 +14,7 @@ export default function App({ children }) {
1414
<Link to="/bar">Bar</Link>
1515
</header>
1616
<div>
17-
<button onClick={() => hashHistory.push('/foo')}>Go to /foo</button>
17+
<button onClick={() => browserHistory.push('/foo')}>Go to /foo</button>
1818
</div>
1919
<div style={{ marginTop: '1.5em' }}>{children}</div>
2020
</div>

0 commit comments

Comments
 (0)