Sale

The past few weeks have brought a lot of change all over the world. Here at Level Up, we hope you're taking appropriate actions to protect yourself and those around you from the spread of COVID-19. Because many of you are stuck at home, we've put all courses and the yearly subscription (Level Up Pro) 50% off until you unsubscribe.
Stay safe. - Scott Tolinski

Save 50%

$12/month*

*Paid annually

card background pattern
Level 2

Custom React Hooks

Unlock Full Course

$49.99 $24.99

Or

$24.99/Month

Custom Hooks for Context Providers

Here we will continue using the context example from the last video and show you how to make a custom hook that can automatically dive into any specific context provider.

Downloads

Comments

Jake
17 days ago

Yep "useAppContext" just confused me while watching the video. Thanks for the comment Ed, glad I didn't miss something.

Other than that, loving the course so far, thanks Scott! This is my first taste of Level Up Tutorials and it's well taught and super easy to follow.

Ed
about 2 months ago

Hi Scott, There is a bug in the download for this lesson. In Menu.js you need to change "useAppContext" to "useAppState" in two places, lines 2 and 5.

This is a great technique for state management.

Thanks.

Something to say?

Become a Pro