React JS State vs Props

Below is the table summarizing the differences between State and Props in React: State Props Private data store for a component Data passed from a parent component to its child component Editable (Mutable) Read-only (Immutable ) State cannot be accessed by child components  Props can be accessed by the child component.  Affects render of the …

React JS State vs Props Read More »