Summary
We learned a really cool concept in this chapter, that is, a context. First, we got to know what is a context under React. We then dug deeper into the context design as well as how to consume it with a useContext
hook. We then went through a context test drive by managing a user object for a site and further learned two more applications of applying contexts to the Theme
and the Table
.
In the next chapter, we will get into our next hook in the React family and see how a ref can be used to hide private matters away from the engine.