Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix docs on how to use solid #2300

Merged
merged 1 commit into from
May 11, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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