Skip to content

Commit 7fd1d9a

Browse files
authored
Fix docs on how to use solid
Closes GH-2300. Reviewed-by: Titus Wormer <[email protected]>
1 parent 9eb747d commit 7fd1d9a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

docs/docs/getting-started.server.mdx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ your JSX runtime.
125125
install and configure [`@mdx-js/react`][mdx-react].
126126
Then wrap your MDX content in a `<ThemeProvider />`
127127
* If you’re using **Solid**,
128-
set [`options.jsxImportSource`][options-jsximportsource] to `'solid-js'`
128+
set [`options.jsxImportSource`][options-jsximportsource] to `'solid-js/h'`
129129

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

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

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

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

0 commit comments

Comments
 (0)