From 7fd1d9a4272754951e70dbaecff07a0ae402e13e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=8C=97=E9=9B=81=E4=BA=91=E4=BE=9D?= <14120445+BeiyanYunyi@users.noreply.github.com> Date: Thu, 11 May 2023 17:55:49 +0800 Subject: [PATCH] Fix docs on how to use solid Closes GH-2300. Reviewed-by: Titus Wormer --- docs/docs/getting-started.server.mdx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/docs/getting-started.server.mdx b/docs/docs/getting-started.server.mdx index f7374dc00..fcc5949a8 100644 --- a/docs/docs/getting-started.server.mdx +++ b/docs/docs/getting-started.server.mdx @@ -125,7 +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**, - 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]. @@ -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… */})) ``` 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.