Skip to content

Commit

Permalink
docs: Remove unnecessary semicolon in connect docs (reduxjs#1728)
Browse files Browse the repository at this point in the history
  • Loading branch information
MatanBobi authored Jun 8, 2021
1 parent 2d3309d commit 4a65734
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/api/connect.md
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,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 4a65734

Please sign in to comment.