title: Is okay to useMemo instead of useEffect for calling side-effect functions
body: <p>Let's have a Component with take &lt;count: number&gt; props. Inside of that component, I call a side-effect and it should only call when props.count change (1 -&gt; 1 shouldn't count as a change). Is it okay to use useMemo in this way?</p>
  <pre class="lang-js prettyprint-override"><code>  useMemo(() =&gt; {
      callAPI();
    }, [count]);
  </code></pre>