Using useMemo instead of React.memo syntax issue : <p>I need to make a demonstration of using React Hooks useMemo. I have working code that is as follows that does what I want:</p>

<pre><code>const SpeakerCardDetail = React.memo(
  ({id,...
</code></pre>

<p>I found a <a href="https://github.com/facebook/react/issues/14616" rel="noreferrer">link</a> that shows that I could use syntax more like this but I can't figure it out exactly.</p>

<p>This is as far as I got:</p>

<pre><code>const SpeakerDetail = React.useMemo(() =&gt; {
   ({ id,
</code></pre>

<p>Clearly not it though.  I do get that React.memo solves the problem but I do need to show useMemo in action and am hoping there is an alternative syntax that I can use.</p>
