diff --git a/content/blog/2018-06-07-when-to-use-derived-state.md b/content/blog/2018-06-07-when-to-use-derived-state.md index 4c301ead..d6bec859 100644 --- a/content/blog/2018-06-07-when-to-use-derived-state.md +++ b/content/blog/2018-06-07-when-to-use-derived-state.md @@ -322,6 +322,8 @@ class Example extends PureComponent { }; render() { + // The render method on this PureComponent is not called unless either + // props.list or state.filterText have referentially different values. const filteredList = this.props.list.filter( item => item.text.includes(this.state.filterText) )