Is context the same as state?

Context is a mechanism designed to store data, and alert consumers when that data has changed. This kind of sounds like state, but isn’t quite the same . Context doesn’t have any rules around telling the Provider component itself when a change has occurred.

Sizin İçin Seçtik  What is state management in react JS?

Leave a Reply

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