render() {
const myArray = [];
return <>
{myArray.map(item => {
return (<Element>
{item}
</Element>);
});}
</>
}
You need to pass an array of element to jsx.
The problem is that forEach does not return anything (i.e it returns undefined).
So it's better to use map because map returns an array:
***