DEV Community

zehra hindioğlu
zehra hindioğlu

Posted on

What is React useContext() ???

The hook useContext is used to keep data ready in an external place where all components can reach it when necessary, instead of adding it to each component one after the other.

The 3 places where useContext is used most: 1.user information, 2.the theme of the page, 3.language options

Top comments (0)

The best way to debug slow web pages cover image

The best way to debug slow web pages

Tools like Page Speed Insights and Google Lighthouse are great for providing advice for front end performance issues. But what these tools can’t do, is evaluate performance across your entire stack of distributed services and applications.

Watch video