how to loops array dimentional with react code example
Example 1: double matrix iteration in react
{Object.map(keyOuter => {
return Object.map(keyInner => {
return (
//Do your stuff
);
});
})}
Example 2: react loop through array
this.items = this.state.cart.map((item, key) => <li key={item.id}>{item.name}</li>);