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)
This commit is contained in:
committed by
Dan Abramov
parent
39278c41e2
commit
a52db12abf
@@ -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