DEV Community

Discussion on: Avoid Prop Drilling In React With Context API

Collapse
hadeel_salah profile image
Hadeel Salah

"The context can be initialized in the top parent components, or in the separate file; it doesn't matter. It can be imported or exported."