April 2021
Intermediate to advanced
376 pages
9h 53m
English
This chapter covers
Provider componentuseContext hookWe’ve seen state encapsulated within components, lifted to shared parents, in form fields, persisted across renders, and pulled in from a database, and we’ve used a whole bunch of hooks to help us set up and work with that state. Our approach has been to keep the state as close to the components that use it as possible. But it’s not uncommon for many components, nested on multiple branches, to hunger for the same juicy worms, the same ...
Read now
Unlock full access