DEV Community

Discussion on: Explain State and Props Like I'm Five

Collapse
 
zspencer profile image
Zee • Edited

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 of state)

I hope this helps!

Zee

Thread Thread
 
david_j_eddy profile image
David J Eddy

Very helpful, TY. Coming from a backend programming perspective and just recently learning VueJS state confused me a bit. Your explanation helps.