DEV Community

loading...

Discussion on: React Context API Made Simple – The practical guide (Updated)

Collapse
ibaslogic profile image
Ibas Author

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.