rendering an array inside an array in react code example
Example: rendering an array inside an array in react
list.map((item, index) => {
return (
<div key={index}>
<ul >{item.value}</ul>
{
item.list.map((subitem, i) => {
return (
<ul ><li>{subitem.value}</li></ul>
)
})
}
</div>
)
}