Posts

Showing posts from January, 2017

React - State v/s Props

Props and state are used to store dynamic information inreact. Dynamic information can change, by definition. But there is a difference.

A React component should use props to store information that can bechanged,but can only be changed by a different component.

A React component should use the state to store information that the component itself can change.