re: React Hooks: How to create and update Context.Provider VIEW POST


Thanks for a nice post! I'd love to see the context module export a custom hook wrapping the call to React.useContext. Then we'd have something like let { state, dispatch } = useStore() 🙂


thanks for your time Richard and indeed we already have some abstractions like with a similar api

code of conduct - report abuse