Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
it's a example for RenderProps to HoC for react-mixpanel v1.0
// @flow
import { MixpanelConsumer } from 'react-mixpanel'
import { fromRenderProps } from 'recompose'
const enhancer = fromRenderProps(MixpanelConsumer, (mixpanel) => ({
export default enhancer
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.