Skip to content

Commit 0ce030a

Browse files
authored
Update README.md
1 parent c7fd0d9 commit 0ce030a

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

README.md

+5-3
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,9 @@ import React from 'react';
4141
import ReactDOM from 'react-dom';
4242
import { createBrowserHistory } from 'history';
4343
import { Provider } from 'mobx-react';
44-
import { RouterStore, syncHistoryWithStore } from 'mobx-react-router';
44+
import { RouterStore, syncHistoryWithStore } from '@ibm/mobx-react-router';
4545
import { Router } from 'react-router';
46-
import App from './App';
46+
import App from './App.jsx';
4747

4848
const browserHistory = createBrowserHistory();
4949
const routingStore = new RouterStore();
@@ -58,7 +58,7 @@ const history = syncHistoryWithStore(browserHistory, routingStore);
5858

5959
ReactDOM.render(
6060
<Provider {...stores}>
61-
<Router history={history}>
61+
<Router location={routingStore.location} navigator={history}>
6262
<App />
6363
</Router>
6464
</Provider>,
@@ -88,6 +88,8 @@ export default class App extends Component {
8888
}
8989
```
9090

91+
Check our live [example](https://stackblitz.com/edit/github-bje76z-uyn64v?file=index.html).
92+
9193
### HashRouter
9294

9395
You can replace `history/createBrowserHistory` with `history/createHashHistory` in the example above to use hash routes instead of HTML5 routing.

0 commit comments

Comments
 (0)