Skip to content

Commit

Permalink
Merge pull request #657 from John-Appleseed/patch-1
Browse files Browse the repository at this point in the history
add reference to the AddTodo solution
  • Loading branch information
gaearon committed Aug 31, 2015
2 parents 4ef883e + 0c6d930 commit 7f00f29
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/Troubleshooting.md
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ handleClick() {
If you’re somewhere deep in the component hierarchy, it is cumbersome to pass the store down manually. This is why [react-redux](https://github.com/gaearon/react-redux) lets you use a `connect` [higher-order component](https://medium.com/@dan_abramov/mixins-are-dead-long-live-higher-order-components-94a0d2f9e750) that will, apart from subscribing you to a Redux store, inject `dispatch` into your component’s props.

The fixed code looks like this:

#### `AddTodo.js`
```js
import { Component } from 'react';
import { connect } from 'react-redux';
Expand Down

0 comments on commit 7f00f29

Please sign in to comment.