My state is initially an Array whose structure is like this. state->[[[],[],..],[],..]
state->[[[],[],..],[],..]
To update this state i tried using JSON.stringify
JSON.stringify