Why can't I change state using React devtools?

777 Views Asked by At

I want to be able to change state in a React app using React devtools, for example, setting loaded to false instead of true. I am not able to edit the value. This is true both on localhost and on the live web app. Why do some boolean values have a checkbox and others don't? enter image description here

1

There are 1 best solutions below

0
On

Make sure you have selected the component containing the state you wish to alter, there is no state in the component selected in the screenshot. If the state property does not have a checkbox you can select the value, input a new value, then hit enter or click away and it will update.