Here value prop is ["hello world"]
it's a simple array of one value string and the given function below is not returning JSX.
const list = ({value}) => {
return (
<div>
{
value.forEach(function(item, index, array) {
console.log(item, index)
return <div>{item}</div>
})
}
</div>
);
}
export default list;