Skip to content

Commit 954b456

Browse files
authored
Merge pull request #408 from ev1stensberg/patch-1
RR 2.0 example snippet
2 parents 939df49 + 6a280da commit 954b456

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

docs/api.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,22 @@ ReactDOM.render(
4949
)
5050
```
5151

52+
##### React Router 2.0
53+
54+
```js
55+
ReactDOM.render(
56+
<Provider store={store}>
57+
<Router history={history}>
58+
<Route path="/" component={App}>
59+
<Route path="foo" component={Foo}/>
60+
<Route path="bar" component={Bar}/>
61+
</Route>
62+
</Router>
63+
</Provider>,
64+
document.getElementById('root')
65+
)
66+
```
67+
5268
### `connect([mapStateToProps], [mapDispatchToProps], [mergeProps], [options])`
5369

5470
Connects a React component to a Redux store.

0 commit comments

Comments
 (0)