What are state and props in React?

Props are used to pass data, whereas state is for managing data . Data from props is read-only, and cannot be modified by a component that is receiving it from outside. State data can be modified by its own component, but is private (cannot be accessed from outside)

Sizin İçin Seçtik  Should I learn React JS in 2021?

Leave a Reply

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