Skip to content

Commit cde9c04

Browse files
dagstuantimdorr
authored andcommitted
Fix a very small typo in mapStateToProps docs (#1040)
1 parent 1db16a4 commit cde9c04

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/connect-extracting-data-with-mapStateToProps.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ function mapStateToProps(state, ownProps) {
6262
};
6363

6464
// Later, in your application, a parent component renders:
65-
<ConnectedTodo id=123} />
65+
<ConnectedTodo id={123} />
6666
// and your component receives props.id, props.todo, and props.visibilityFilter
6767
```
6868
@@ -251,4 +251,4 @@ function mapStateToProps(...args) {
251251
- [Why Is My Component Re-Rendering Too Often?](https://redux.js.org/faq/reactredux#why-is-my-component-re-rendering-too-often)
252252
- [Why isn't my component re-rendering, or my mapStateToProps running](https://redux.js.org/faq/reactredux#why-isnt-my-component-re-rendering-or-my-mapstatetoprops-running)
253253
- [How can I speed up my mapStateToProps?](https://redux.js.org/faq/reactredux#why-is-my-component-re-rendering-too-often)
254-
- [Should I only connect my top component, or can I connect multiple components in my tree?](https://redux.js.org/faq/reactredux#why-is-my-component-re-rendering-too-often)
254+
- [Should I only connect my top component, or can I connect multiple components in my tree?](https://redux.js.org/faq/reactredux#why-is-my-component-re-rendering-too-often)

0 commit comments

Comments
 (0)