Context in React, what it is and how to use it.
In React, if we want to pass props to a nested child component, we usually have to thread it through the child's ancestors like so:
function App() {
const data = "Hello world"
return <FirstAncestor data={data} />
}
function FirstAncestor(pro...
jeffreyon.hashnode.dev4 min read