I want to set the state of my component after a certain amount time but the problem is that the state is an array nested in an object nested in an array. Here is my code:
this.state = {
items: {
label: ['A', 'B', 'C', 'D'],
data: [
{
label: 'A',
value: [1, 2, 3, 4, 5]
}
]
}
}
I want to change the state of value
to the following:
value: ["a", "b", "c", "d"]
How can I achieve this?