Skip to content

Commit 02b6b1c

Browse files
committed
Remove semicolon inside of code snippet in connect.md
1 parent fa9d61d commit 02b6b1c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/api/connect.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -123,9 +123,9 @@ If your `mapDispatchToProps` function is declared as taking two parameters, it w
123123
124124
The second parameter is normally referred to as `ownProps` by convention.
125125
126-
```js
126+
```ts
127127
// binds on component re-rendering
128-
;<button onClick={() => this.props.toggleTodo(this.props.todoId)} />
128+
<button onClick={() => this.props.toggleTodo(this.props.todoId)} />
129129

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

0 commit comments

Comments
 (0)