reactjs(useContext Hook)
1- The useContext hook accepts a context object and returns it.
2- If we wanna pass global variable in a react tree of components then using contextAPI and useContext hook makes it very simple & efficient .
Basically it follows three steps as mention...
shivrajdeopa.hashnode.dev2 min read