Skip to content

Commit

Permalink
Merge pull request #408 from ev1stensberg/patch-1
Browse files Browse the repository at this point in the history
RR 2.0 example snippet
  • Loading branch information
timdorr authored Jul 10, 2016
2 parents 939df49 + 6a280da commit 954b456
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions docs/api.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,22 @@ ReactDOM.render(
)
```

##### React Router 2.0

```js
ReactDOM.render(
<Provider store={store}>
<Router history={history}>
<Route path="/" component={App}>
<Route path="foo" component={Foo}/>
<Route path="bar" component={Bar}/>
</Route>
</Router>
</Provider>,
document.getElementById('root')
)
```

### `connect([mapStateToProps], [mapDispatchToProps], [mergeProps], [options])`

Connects a React component to a Redux store.
Expand Down

0 comments on commit 954b456

Please sign in to comment.