title: React.useMemo in class component
body: <p>Is there a way to use this hook or some its analogue of the React API in the case of a class component?</p>
  <p>I'm wondering, should I use some third party memo helpers in the case of a class component (eg. <strong>lodash memo</strong>, <strong>memoizeOne</strong>, etc.) or there is exist some official react API way for class components.</p>
  <p>Thanks for any help.</p>
  <p>P.S.</p>
  <p>I want to generate uuid in the case of changed Children.</p>
  <p>with SFC component I could use useMemo like this</p>
  <pre><code>const keyValue = useMemo(() =&gt; uuid()(), [children])
  </code></pre>
  <p>But how to achieve the same for class-based components without any thirdparty, etc. <br />
  P.P.S. I'm not using Redux, etc. only pure React.js</p>