mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
Higher-Order Components docs withSubscription() example fix (#8694)
(cherry picked from commit a52db12abf)
This commit is contained in:
committed by
Dan Abramov
parent
8b51d9ec73
commit
5cdd66700b
@@ -148,7 +148,7 @@ function withSubscription(WrappedComponent, selectData) {
|
||||
|
||||
handleChange() {
|
||||
this.setState({
|
||||
comments: selectData(DataSource, this.props)
|
||||
data: selectData(DataSource, this.props)
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user