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