Accessing Context with useContext()
Learn how touse Hooks to pass data throughout our app without manually passing props down the tree.
We'll cover the following...
We'll cover the following...
What is useContext
?
The third and final basic Hook is useContext()
. It allows us to consume data from a Context Provider
without having to define a Provider
component with a function as a child.
The useContext()
Hook is ...