What is the difference between state and props?

Props are used to pass data from one component to another. The state is a local data storage that is local to the component only and cannot be passed to other components .

Sizin İçin Seçtik  Java 8 ne işe yarar?

Leave a Reply

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