how to map in react js code example
Example 1: react map
{array.map((item)=>{
return (
<div key={item.id}>I am one Object in the Array {item}</div>
)
})}
Example 2: how map work in react
{this.state.data.map((person) => <TableRow key = {shortid.generate()} data = {person} />)}