mapping through array, value not showing react {items.map(item => { <TodoItem text={item} /> } )} code example
Example: map function in react
function NameList() {
const names = ['Bruce', 'Clark', 'Diana']
return (
<div>
{names.map(name => <h2>{name}</h2>)}
</div>
)
}