I'm trying to map some elements based on an arbitrary length.
I haven't been able to find anything online, but I'd like to do something like:
new Array(5).map(num => <input />)
but this doesn't seem to work.
A user would input a number, and then that many input fields should render.
What am I doing wrong here?