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

Raul
Admin
5 days ago

@Ed Thank you for sharing the correction

Jake
3 months 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
4 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