Skip to content

Commit 42c21f7

Browse files
committed
Fix Router examples in introduction
1 parent d3db6fb commit 42c21f7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/Introduction.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ const routes = {
159159
]
160160
}
161161

162-
render(<Router routes={routes} />, document.body)
162+
render(<Router history={history} routes={routes} />, document.body)
163163
```
164164

165165
## Adding More UI
@@ -187,7 +187,7 @@ const Inbox = React.createClass({
187187
})
188188

189189
render((
190-
<Router>
190+
<Router history={history}>
191191
<Route path="/" component={App}>
192192
<IndexRoute component={Home} />
193193
<Route path="about" component={About} />

0 commit comments

Comments
 (0)