Skip to content

Commit

Permalink
fix(gatsby-plugin-mdx): don't use jsx (#18982)
Browse files Browse the repository at this point in the history
* fix: don't use jsx

* chore: format
  • Loading branch information
jquense authored and GatsbyJS Bot committed Oct 25, 2019
1 parent e231059 commit fdeb679
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions packages/gatsby-plugin-mdx/context.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,9 @@ export const useMDXScope = scope => {
return scope || contextScope
}

export const MDXScopeProvider = ({ __mdxScope, children }) => (
<GatsbyMDXScopeContext.Provider value={__mdxScope}>
{children}
</GatsbyMDXScopeContext.Provider>
)
export const MDXScopeProvider = ({ __mdxScope, children }) =>
React.createElement(
GatsbyMDXScopeContext.Provider,
{ value: __mdxScope },
children
)

0 comments on commit fdeb679

Please sign in to comment.