What is 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  Is React query a state management?

Leave a Reply

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