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.
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.