Looking to get into development? As a full-stack developer I guide you on this journey and give you bite sized tips every single day 👊
I'm a full-stack developer from South Africa 🇿🇦. I love writing about JavaScript, HTML and CSS.
Markdown supported · ⌘↵ to post
Jb Rocher
Nice one ! Something I like to do when creating these kind of providers is to export a custom hook wrapping the call to
useContext.For example :
const useTheme = () => useContext(ThemeContext);