I need to disable x, y, z when move is set to false. So I assume I need to use the set function for r1 and update the disable attribute of x, y and z. However, when I am trying to add the set function I get an "object is not iterable error"
I have tried
const [{r1}, setR1] = ...
const[r1, setR1] = ....
What is the correct syntax to get the set function? Thanks
Hello:
I am using a folder as below:
I need to disable x, y, z when move is set to false. So I assume I need to use the set function for r1 and update the disable attribute of x, y and z. However, when I am trying to add the set function I get an "object is not iterable error"
I have tried
const [{r1}, setR1] = ...
const[r1, setR1] = ....
What is the correct syntax to get the set function? Thanks