fix(mdx-loader): use React.Fragment as fragment factory (#7392)

This commit is contained in:
Joshua Chen 2022-05-11 11:02:41 +08:00 committed by GitHub
parent 60960b471d
commit d3788bd126
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 1 deletions

View file

@ -31,7 +31,7 @@ const {
const pragma = ` const pragma = `
/* @jsxRuntime classic */ /* @jsxRuntime classic */
/* @jsx mdx */ /* @jsx mdx */
/* @jsxFrag mdx.Fragment */ /* @jsxFrag React.Fragment */
`; `;
const DEFAULT_OPTIONS: MDXOptions = { const DEFAULT_OPTIONS: MDXOptions = {

View file

@ -183,3 +183,9 @@ Code tag + double pipe: <code>||</code>
Details without a summary Details without a summary
</details> </details>
This is a fragment:
<>Hello</>
It should work :)