title: [react]: useMemo returns first element when passed an array
body: <p>Here's the sample code</p>
  <pre><code>export default function App() {
    const [links] = React.useMemo(
      () =&gt; ['hello', 'world'],[]
    )
    return (
      &lt;div className=&quot;App&quot;&gt;
        &lt;button onClick={() =&gt; console.log(links)}&gt;console&lt;/button&gt;
      &lt;/div&gt;
    );
  }
  </code></pre>
  <p>When the button is clicked, i get following in console</p>
  <pre><code>hello
  </code></pre>
  <p>My question: since it returns the first element, i'm unable to map over <code>links</code> array. is it even the way I should be using <code>useMemo</code>? note that the array i passed is for example and the elements could get bigger than just a simple string.</p>