DEV Community


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

ibaslogic profile image
Ibas Author

Hi Willian!

Appreciate your concern. I understand where you are coming from.

Yes, I pointed out that passing down prop when we have few layers of component in-between is best. And that is the case of the Todos app used in this tutorial.

But there are scenarios where the Context is better. In the case where many deeply nested components need access to global data.

The focus here is how we can use the context API to retrieve data in these "nested components".

Again, thanks man for pointing that out.