User1034446946 posted
Hi
if i have a direct reference like state[someProperty].someProperty[someOtherProperty].someOtherProperty[anotherProperty].flag
how do i use it instead of doing
{...prevState,someProperty:
{...prevState.someProperty,someOtherProperty:
{...prevState.someProperty.someOtherProperty,anotherProperty:
{...prevState.someProperty.someOtherProperty.anotherProperty,
flag: false
}
}
}
}
the only way i can think is just return an array of keys an split itinstead of the binding
(this is for modifiying state)