div
в react?const Item= ({ list}) => (
<div>
{list.map(li=> (
<p key={li}>{li} </p>
))}
</div>
);
const Item = ({ list}) => list.map(li=> <p key={li}> {li}</p>);
A valid React element (or null) must be returned. You may have returned undefined, an array or some other invalid object.