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 component | Does not affect render of the component |
Can be updated using setState method | Cannot be updated within the child component |