title: React memo nextState
body: <p>I am trying to implement shouldComponentUpdate method in a functional component.</p>
  <p>Here is the original method (classfull component)</p>
  <pre><code>shouldComponentUpdate(nextProps, nextState) {
     return (
       this.state.isSelected || nextState.isSelected !== this.state.isSelected
     );
  }
  </code></pre>
  <p>But, with React memo it seems that I can only access prevProps and nextProps, not nextState.</p>
  <pre><code>memo(..., (prevProps, nextProps) =&gt; true);
  </code></pre>
  <p>How can I access nextState in a functional component to simulate the shouldComponentUpdate?</p>