From fdeb6790f31b107546e04a43b3d54e2fbf43f5ed Mon Sep 17 00:00:00 2001 From: Jason Quense Date: Fri, 25 Oct 2019 08:23:52 -0400 Subject: [PATCH] fix(gatsby-plugin-mdx): don't use jsx (#18982) * fix: don't use jsx * chore: format --- packages/gatsby-plugin-mdx/context.js | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/packages/gatsby-plugin-mdx/context.js b/packages/gatsby-plugin-mdx/context.js index d87532b94fa8e..2a9728e9dc368 100644 --- a/packages/gatsby-plugin-mdx/context.js +++ b/packages/gatsby-plugin-mdx/context.js @@ -7,8 +7,9 @@ export const useMDXScope = scope => { return scope || contextScope } -export const MDXScopeProvider = ({ __mdxScope, children }) => ( - - {children} - -) +export const MDXScopeProvider = ({ __mdxScope, children }) => + React.createElement( + GatsbyMDXScopeContext.Provider, + { value: __mdxScope }, + children + )