Skip to content

Commit

Permalink
Update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
remcohaszing committed Feb 10, 2024
1 parent d9e33f0 commit 47b017e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 8 deletions.
6 changes: 2 additions & 4 deletions docs/docs/using-mdx.mdx
Expand Up @@ -41,10 +41,8 @@ That’s *roughly* turned into the following JavaScript.
The below might help to form a mental model:

```tsx path="output-outline.jsx"
/*
@jsxRuntime automatic
@jsxImportSource react
*/
/*@jsxRuntime automatic*/
/*@jsxImportSource react*/

export function Thing() {
return <>World</>
Expand Down
6 changes: 2 additions & 4 deletions packages/mdx/readme.md
Expand Up @@ -653,10 +653,8 @@ Configuration for `createProcessor` (TypeScript type).

```diff
-import {Fragment as _Fragment, jsx as _jsx, jsxs as _jsxs} from 'react/jsx-runtime'
+/*
+@jsxRuntime automatic
+@jsxImportSource react
+*/
+/*@jsxRuntime automatic*/
+/*@jsxImportSource react*/

export function Thing() {
- return _jsx(_Fragment, {children: 'World'})
Expand Down

0 comments on commit 47b017e

Please sign in to comment.