Skip to content

Commit caac5df

Browse files
committedDec 14, 2022
Update docs for solid-js supporting JSX
1 parent 641eb91 commit caac5df

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed
 

Diff for: ‎docs/docs/getting-started.server.mdx

+3-7
Original file line numberDiff line numberDiff line change
@@ -125,9 +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-
install [`solid-jsx`][solid-jsx].
129-
Set [`options.jsxImportSource`][options-jsximportsource] to
130-
`'solid-jsx'`.
128+
set [`options.jsxImportSource`][options-jsximportsource] to `'solid-js'`
131129

132130
Other JSX runtimes are supported by setting
133131
[`options.jsxImportSource`][options-jsximportsource].
@@ -898,12 +896,12 @@ for more info.
898896
```js path="example.js"
899897
import {compile} from '@mdx-js/mdx'
900898

901-
const js = String(await compile('# hi', {jsxImportSource: 'solid-jsx', /* otherOptions… */}))
899+
const js = String(await compile('# hi', {jsxImportSource: 'solid-js', /* otherOptions… */}))
902900
```
903901
</details>
904902

905903
Solid is supported when [`options.jsxImportSource`][options-jsximportsource] is
906-
set to `'solid-jsx'`.
904+
set to `'solid-js'`.
907905

908906
See also [¶ Vite][vite] and [¶ Rollup][rollup] which you might be using, for
909907
more info.
@@ -926,8 +924,6 @@ See their readmes on how to configure them.
926924

927925
[@next/mdx]: https://github.com/vercel/next.js/tree/canary/packages/next-mdx
928926

929-
[solid-jsx]: https://github.com/high1/solid-jsx
930-
931927
[svelte-jsx]: https://github.com/kenoxa/svelte-jsx
932928

933929
[jsx]: #jsx

1 commit comments

Comments
 (1)

vercel[bot] commented on Dec 14, 2022

@vercel[bot]

Successfully deployed to the following URLs:

mdx – ./

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

Please sign in to comment.