loading...

re: Explain State and Props Like I'm Five VIEW POST

TOP OF THREAD FULL DISCUSSION
re: I'd really welcome feedback if this isn't right or the best way of explaining them, but here's a shot: State holds data and variables which are s...
 

What is the difference between 'state' and an OOP object?

 

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

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

Code of Conduct Report abuse