title: Unable to create and map through an array using new Array
body: <p>I'm trying to map some elements based on an arbitrary length.</p>
  <p>I haven't been able to find anything online, but I'd like to do something like:</p>
  <pre><code>new Array(5).map(num =&gt; &lt;input /&gt;)
  </code></pre>
  <p>but this doesn't seem to work.</p>
  <p>A user would input a number, and then that many input fields should render.</p>
  <p>What am I doing wrong here?</p>
  <p><a href="https://codesandbox.io/s/currying-forest-51h4o?file=/src/App.js" rel="nofollow noreferrer">CodeSandbox</a></p>