Skip to content

Commit

Permalink
Update getting-started.server.mdx
Browse files Browse the repository at this point in the history
Signed-off-by: 北雁云依 <14120445+BeiyanYunyi@users.noreply.github.com>
  • Loading branch information
BeiyanYunyi committed May 11, 2023
1 parent 9eb747d commit 465a567
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/docs/getting-started.server.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ your JSX runtime.
install and configure [`@mdx-js/react`][mdx-react].
Then wrap your MDX content in a `<ThemeProvider />`
* If you’re using **Solid**,
set [`options.jsxImportSource`][options-jsximportsource] to `'solid-js'`
set [`options.jsxImportSource`][options-jsximportsource] to `'solid-js/h'`

Other JSX runtimes are supported by setting
[`options.jsxImportSource`][options-jsximportsource].
Expand Down Expand Up @@ -899,12 +899,12 @@ for more info.
```js path="example.js"
import {compile} from '@mdx-js/mdx'

const js = String(await compile('# hi', {jsxImportSource: 'solid-js', /* otherOptions… */}))
const js = String(await compile('# hi', {jsxImportSource: 'solid-js/h', /* otherOptions… */}))
```
</details>

Solid is supported when [`options.jsxImportSource`][options-jsximportsource] is
set to `'solid-js'`.
set to `'solid-js/h'`.

See also [¶ Vite][vite] and [¶ Rollup][rollup] which you might be using, for
more info.
Expand Down

0 comments on commit 465a567

Please sign in to comment.