React
Last updated
Last updated
Props
are used to pass data from parent to child or by the component itself. They are immutable and thus will not be changed.
State
is used for mutable data, or data that will change. This is particularly useful for user input. Think search bars for example. The user will type in data and this will update what they see.