Skip to content

Commit fdeb679

Browse files
jquenseGatsbyJS Bot
authored and
GatsbyJS Bot
committed
fix(gatsby-plugin-mdx): don't use jsx (#18982)
* fix: don't use jsx * chore: format
1 parent e231059 commit fdeb679

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

packages/gatsby-plugin-mdx/context.js

+6-5
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,9 @@ export const useMDXScope = scope => {
77
return scope || contextScope
88
}
99

10-
export const MDXScopeProvider = ({ __mdxScope, children }) => (
11-
<GatsbyMDXScopeContext.Provider value={__mdxScope}>
12-
{children}
13-
</GatsbyMDXScopeContext.Provider>
14-
)
10+
export const MDXScopeProvider = ({ __mdxScope, children }) =>
11+
React.createElement(
12+
GatsbyMDXScopeContext.Provider,
13+
{ value: __mdxScope },
14+
children
15+
)

0 commit comments

Comments
 (0)