I have an array of objects, and I want to display value
from its status
which is an attribute within the object.
this.state = {
objetcs: [{
value: 1,
status: false
}, {
value: 2,
status: true
}]
}
}
// const object = [{ value: 1, status: false }, {value: 2, status: true} ]
If status
is true
I render it, if not, not render.
How can I do this?