Using Context API in React with Hooks
Redux or Context?
Hey there,
It’s me, Tania.
I wrote a quick article:
How and When to Use Context in React with Hooks
I always forget the syntax for how to use Context, and the article I wrote on it a few years ago used legacy Class and contextType syntax, so I wrote up a little article with the newer syntax and an example of a situation I think it makes sense to use Context as opposed to Redux.
I have some more articles I want to write soon, so I’ll probably be sending out emails a little more often.
Have a good day!
Create your profile
Only paid subscribers can comment on this post
Check your email
For your security, we need to re-authenticate you.
Click the link we sent to , or click here to sign in.