EpicReact.dev

Welcome to the EpicReact.dev Workshop app!

This is the deployed version. Run locally for full experience.
Join EpicReact.devβ†—οΈŽLogin
20
Shared Context β€” Context Hook
20

04. Shared Context/02. Context Hook (🏁 solution)

Context Hook

β–ˆ<
Loading "Context Hook (🏁 solution)"
β–ˆ<
Context Hook (🏁 solution) β†—οΈŽ
Run locally for transcripts
πŸ‘¨β€πŸ’Ό Great job!
πŸ¦‰ There are definitely cases where a default value for context makes sense, but often it does not. You should normally follow the pattern we've done here when you're using context.
← PreviousNext β†’
Edit on GitHubEdit this page on GitHub
playgroundproblemsolutiontestsdiffchat
β–ˆ<
Loading "Context Hook"
β–ˆ<