Skip to content

Commit 271b7f6

Browse files
committed
remove another semicolon
1 parent 02b6b1c commit 271b7f6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/using-react-redux/connect-extracting-data-with-mapStateToProps.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ export default connect(mapStateToProps)(TodoList)
5555
5656
You may define the function with a second argument, `ownProps`, if your component needs the data from its own props to retrieve data from the store. This argument will contain all of the props given to the wrapper component that was generated by `connect`.
5757
58-
```js
58+
```ts
5959
// Todo.js
6060

6161
function mapStateToProps(state, ownProps) {
@@ -69,7 +69,7 @@ function mapStateToProps(state, ownProps) {
6969
}
7070

7171
// Later, in your application, a parent component renders:
72-
;<ConnectedTodo id={123} />
72+
<ConnectedTodo id={123} />
7373
// and your component receives props.id, props.todo, and props.visibilityFilter
7474
```
7575

0 commit comments

Comments
 (0)