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)