Say I have an array like this one I want to loop through it and display the data that's inside the objects, any idea how I can do that?
layout: [
[{
type: 'text',
value: 'abc'
}],
[{
type: 'text',
value: 'def'
}],
[
{
type: 'text',
value: '123'
},
{}
]
]
And here is my loop:
const {layout} = this.state
let rows = []
for (let i = 0; i < layout.length; i++) {
rows.push(<div className="row" key={i}>
</div>);
}