I am trying to create an object in state in React .What I require us that 'status' is actually a field that is updated by setState
this.state = {
data:[],
sort: 0,
field:"",
filters:{
'status':{
value:""
}
The code should be:
this.state = {
data:[],
sort: 0,
field:"",
filters:{
field:{
value:""
}
How should I set the same object to the nested object?