Skip to content

Conversation

@johno
Copy link
Member

@johno johno commented Nov 21, 2018

Fixes #322

@vercel
Copy link

vercel bot commented Nov 21, 2018

This pull request is automatically deployed with Now.
To access deployments, click Details below or on the icon next to each push.

@johno johno force-pushed the define-components branch from 9951943 to 783b776 Compare November 21, 2018 05:58
`${code}
return React.createElement(MDXContent);`
return React.createElement(MDXContent, { components });`
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We need to manually pass components as a prop, otherwise const { components = {} } = this.props in render will override them.

@johno johno merged commit c81fd77 into master Nov 21, 2018
@johno johno deleted the define-components branch November 21, 2018 06:05
johno added a commit that referenced this pull request Nov 22, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants