Skip to content

Commit

Permalink
Fix: Fix typo in connect.md
Browse files Browse the repository at this point in the history
  • Loading branch information
SimYunSup committed Feb 6, 2020
1 parent 77a2044 commit cca8a40
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion website/versioned_docs/version-7.1/api/connect.md
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ The second parameter is normally referred to as `ownProps` by convention.
```js
// binds on component re-rendering
;<button onClick={() => this.props.toggleTodo(this.props.todoId)} />
<button onClick={() => this.props.toggleTodo(this.props.todoId)} />

// binds on `props` change
const mapDispatchToProps = (dispatch, ownProps) => {
Expand Down

0 comments on commit cca8a40

Please sign in to comment.