DEV Community

What is the difference between State and props in ReactJs?

Anil Kushwaha on May 05, 2019

State - This is data maintained inside a component. It is local or owned by that specific component. The component itself will update the state usi...
Collapse
 
adriantoddross profile image
Adrian Ross • Edited

Simple and to the point. Thank you! I'm a jr. dev, just finished coding bootcamp last year and still struggle with explaining state vs. props sometimes. It was cool to just be able to quickly read this and also see clear explanations of how state and props are used as well.

Collapse
 
harittweets profile image
Harit Himanshu

Nice! Maybe you want to add some code samples for community to learn more about what it is to create state and use props!

Collapse
 
tennerick profile image
adesunloye Adeola

nice this definitely helps

Collapse
 
samizad profile image
Sami Zad

Nice read