I have just tried to add value to this.state
from browser console in React.
I tried it in two way,
first: used this code $r.state.list[0].a = 2
.
second: used react developer extension and changed it from components.
this is the code I'm using:
this.state = {
list: [
{ a: 5 },
{ b: 6 },
{ c: 1 },
],
};
the UI is working based on the state value. If I change the value it would be updated in UI.
I want to change the value from the console and check the UI is changing or not based on the value. If I hard code it will work.