From caac5df4fc06bcd61bcef43769d419fc57d47cea Mon Sep 17 00:00:00 2001 From: Titus Wormer Date: Wed, 14 Dec 2022 12:12:58 +0400 Subject: [PATCH] Update docs for `solid-js` supporting JSX --- docs/docs/getting-started.server.mdx | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/docs/docs/getting-started.server.mdx b/docs/docs/getting-started.server.mdx index cdd87567d..e2e22a3c3 100644 --- a/docs/docs/getting-started.server.mdx +++ b/docs/docs/getting-started.server.mdx @@ -125,9 +125,7 @@ your JSX runtime. install and configure [`@mdx-js/react`][mdx-react]. Then wrap your MDX content in a `` * If you’re using **Solid**, - install [`solid-jsx`][solid-jsx]. - Set [`options.jsxImportSource`][options-jsximportsource] to - `'solid-jsx'`. + set [`options.jsxImportSource`][options-jsximportsource] to `'solid-js'` Other JSX runtimes are supported by setting [`options.jsxImportSource`][options-jsximportsource]. @@ -898,12 +896,12 @@ for more info. ```js path="example.js" import {compile} from '@mdx-js/mdx' - const js = String(await compile('# hi', {jsxImportSource: 'solid-jsx', /* otherOptions… */})) + const js = String(await compile('# hi', {jsxImportSource: 'solid-js', /* otherOptions… */})) ``` Solid is supported when [`options.jsxImportSource`][options-jsximportsource] is -set to `'solid-jsx'`. +set to `'solid-js'`. See also [¶ Vite][vite] and [¶ Rollup][rollup] which you might be using, for more info. @@ -926,8 +924,6 @@ See their readmes on how to configure them. [@next/mdx]: https://github.com/vercel/next.js/tree/canary/packages/next-mdx -[solid-jsx]: https://github.com/high1/solid-jsx - [svelte-jsx]: https://github.com/kenoxa/svelte-jsx [jsx]: #jsx