How do I let a variable amount of array's show up? I should give a list on the webpage with all the elements of the array.
I tried this:
cons function = () =>{for (let i = 0; i < array.length; i++) {
<li>
<p>{array[i]}</p>
</li>
}}
and call it like this:
const page = () => {
return (
<div>
<ul>
<Classes/>
</ul>
</div>
);
}
{x}