diff --git a/docs/higher-order-components.md b/docs/higher-order-components.md index 58d8b592..5daf8e51 100644 --- a/docs/higher-order-components.md +++ b/docs/higher-order-components.md @@ -148,7 +148,7 @@ function withSubscription(WrappedComponent, selectData) { handleChange() { this.setState({ - comments: selectData(DataSource, this.props) + data: selectData(DataSource, this.props) }); }