In short:
State are the variables by the component for the component.
Props are the variables. inherited by a component from its parent components.
State and props both do the same things. there are very few differences between them such as,
Props are immutable that is it returns same output every time for a particular input.
whereas state are mutable.
state can be also defined with the help of props.
this is what i have understand till now, any type of correction will be appreciated.
Top comments (4)
short and clear.
to the point, thanks.
thanks for your appreciation
Most short but Powerful complite ansβ€