Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

JavaScript React by Example Building the Application Connecting the Confirm Guests Handler

How to use context to access the functions

Theres a lot of prop drilling here, why not use contexts

1 Answer

It's possible that the video is a little old and context didn't exist at the time the video was created.

I believe context and hooks are pretty new concepts.

If you know how to use them, great.

I figured it out.. Took me some time but yes. It was fun :)