What is the use of context in React?

What is context in React? React’s context allows you to share information to any component, by storing it in a central place and allowing access to any component that requests it (usually you are only able to pass data from parent to child via props).

Sizin İçin Seçtik  How do you create a global state?

Leave a Reply

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