Hi Stoyan! Thanks for pointing that out. But really, that is not the point I was trying to drive out. I was trying to utilize every option to access the context data. Yes with Hooks we can use only the function component. But some still uses class component you know?
In the tutorial, I showed how we can access the context data not only in the class component but also in function component, including through the Hooks.
The focus here is on the Context and not the component type.
Again, I appreciate your point.
Thanks, Stoyan.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Hi Stoyan! Thanks for pointing that out. But really, that is not the point I was trying to drive out. I was trying to utilize every option to access the context data. Yes with Hooks we can use only the function component. But some still uses class component you know?
In the tutorial, I showed how we can access the context data not only in the class component but also in function component, including through the Hooks.
The focus here is on the Context and not the component type.
Again, I appreciate your point.
Thanks, Stoyan.