mirror of
https://github.com/reactjs/react.dev.git
synced 2026-02-24 12:43:05 +00:00
Fix typo (#9717)
The example explaining how redux's connect works doesn't use the same component name. Line 264 references (Comment) while 274 referenced (CommentList). Changed 264 to match 274.
This commit is contained in:
committed by
Nathan Hunzaker
parent
685a0934a4
commit
8c1de5dbba
@@ -261,7 +261,7 @@ The most common signature for HOCs looks like this:
|
||||
|
||||
```js
|
||||
// React Redux's `connect`
|
||||
const ConnectedComment = connect(commentSelector, commentActions)(Comment);
|
||||
const ConnectedComment = connect(commentSelector, commentActions)(CommentList);
|
||||
```
|
||||
|
||||
*What?!* If you break it apart, it's easier to see what's going on.
|
||||
|
||||
Reference in New Issue
Block a user