What is React useContext() ???
dusa

dusa @imdusa

About: I write short articles about everything I learn.

Joined:
May 16, 2024

What is React useContext() ???

Publish Date: Jan 1
-1 0

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

Comments 0 total

    Add comment