Skip to content

Commit

Permalink
Fix docs on how to use solid
Browse files Browse the repository at this point in the history
Closes GH-2300.

Reviewed-by: Titus Wormer <[email protected]>
  • Loading branch information
BeiyanYunyi authored May 11, 2023
1 parent 9eb747d commit 7fd1d9a
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

1 comment on commit 7fd1d9a

@vercel
Copy link

@vercel vercel bot commented on 7fd1d9a May 11, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

mdx – ./

mdxjs.com
mdx-mdx.vercel.app
v2.mdxjs.com
mdx-git-main-mdx.vercel.app

Please sign in to comment.