Skip to content

Commit 7f00f29

Browse files
committed
Merge pull request #657 from John-Appleseed/patch-1
add reference to the AddTodo solution
2 parents 4ef883e + 0c6d930 commit 7f00f29

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/Troubleshooting.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ handleClick() {
159159
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.
160160

161161
The fixed code looks like this:
162-
162+
#### `AddTodo.js`
163163
```js
164164
import { Component } from 'react';
165165
import { connect } from 'react-redux';

0 commit comments

Comments
 (0)