Why do we use state and props?

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.

Sizin İçin Seçtik  What is NgRx for Angular?

Leave a Reply

Your email address will not be published. Required fields are marked *