Closed dgw2jr closed 5 years ago
Can you expose MixpanelContext so we can use it in functional components like
const mixpanelContext = useContext(MixpanelContext);
👍 we'd like to use context for React Hooks!!!
Covered here: https://github.com/neciu/react-mixpanel/pull/29
Since version 1.0.4 you can get MixpanelContext as default export.
MixpanelContext
Can you expose MixpanelContext so we can use it in functional components like
const mixpanelContext = useContext(MixpanelContext);