Skip to content

Commit 5c517de

Browse files
committed
Update UPGRADE_GUIDE.md
closes #510
1 parent 1975b2d commit 5c517de

File tree

1 file changed

+17
-3
lines changed

1 file changed

+17
-3
lines changed

UPGRADE_GUIDE.md

Lines changed: 17 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,15 +28,29 @@ of your views.
2828

2929
```js
3030
// 0.10.x
31+
var routes = (
32+
<Routes location="history">
33+
<Route handler={App}>
34+
<Route name="dashboard" handler={Dashboard}/>
35+
</Route>
36+
</Routes>
37+
);
38+
3139
React.render(routes, el);
3240

3341
// 0.11.x
34-
Router.run(routes, function (Handler) {
42+
var routes = (
43+
<Route handler={App}>
44+
<Route name="dashboard" handler={Dashboard}/>
45+
</Route>
46+
);
47+
48+
Router.run(routes, Router.HistoryLocation, function (Handler) {
3549
React.render(<Handler/>, el);
3650
});
3751

38-
// or if using history location
39-
Router.run(routes, Router.HistoryLocation, function (Handler) {
52+
// or default to hash location
53+
Router.run(routes, function (Handler) {
4054
React.render(<Handler/>, el);
4155
});
4256
```

0 commit comments

Comments
 (0)