mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
Update 12-context.md (#6973)
Modify a clerical error
(cherry picked from commit 665633a1b7)
This commit is contained in:
committed by
Paul O’Shannessy
parent
3e61ccc2d4
commit
902a15d149
@@ -50,7 +50,7 @@ class MessageList extends React.Component {
|
||||
const children = this.props.messages.map((message) =>
|
||||
<Message text={message.text} color={color} />
|
||||
);
|
||||
return <div>{this.props.children}</div>;
|
||||
return <div>{children}</div>;
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user