In my understanding, React and Vue state is an extension of an object, with some tools for noticing changes and informing the React or Vue framework about those changes so the framework/virtual machine can do something with those changes.
So state in react is a kind of object, but the inverse is not true (object is not a kind ofstate)
Hey David,
In my understanding, React and Vue
state
is an extension of an object, with some tools for noticing changes and informing the React or Vue framework about those changes so the framework/virtual machine can do something with those changes.So
state
in react is a kind of object, but the inverse is not true (object
is not a kind ofstate
)I hope this helps!
Zee
Very helpful, TY. Coming from a backend programming perspective and just recently learning VueJS state confused me a bit. Your explanation helps.