File tree Expand file tree Collapse file tree 1 file changed +3
-7
lines changed Expand file tree Collapse file tree 1 file changed +3
-7
lines changed Original file line number Diff line number Diff 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
132130Other 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
905903Solid is supported when [ ` options.jsxImportSource ` ] [ options-jsximportsource ] is
906- set to ` 'solid-jsx ' ` .
904+ set to ` 'solid-js ' ` .
907905
908906See also [ ¶ Vite] [ vite ] and [ ¶ Rollup] [ rollup ] which you might be using, for
909907more 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
You can’t perform that action at this time.
0 commit comments