I'm attempting to set the state of a specific element (a checkbox) so that I can later pass this data back to a parent component that will in turn update a JSON object. I am able to set the state of higher level elements but I am not understanding how to access the nested values.
How do I use .setState to set the state of a specific element? Such as this.state.data[0].checked
I'm attempting to set the state with something like this which would only update data at the moment:
handleChange: function(event) {
this.setState({data: event.target.value}});
},