Props:Data passedintoa component from its parent. Immutable (read-only) from the child's perspective. State:Datamanaged withina component. Mutable (can be changed by the component itself). functionCounter(){// 'count' is a state variable, initialized to 0const[count,setCount]=React.useState(...
In object-oriented and functional programming, an immutable object is an object whose state cannot be modified after it is created. This is in contrast to a mutable object (changeable object), which can be modified after it is created. Quoted from Wikipedia...