useContext in react: everything you need to know
only understand this: Using useContext is not necessary, we use it to avoid prop drilling.
Here's how prop drilling works:Let's say the grandfather component has a certain state and the great-grandson component needs to use this state. Now, in order ...
rajatgupta.net9 min read
Anand Baraik
Novice in everything, student for life!
A good read!