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.
125
125
install and configure [ ` @mdx-js/react ` ] [ mdx-react ] .
126
126
Then wrap your MDX content in a ` <ThemeProvider /> `
127
127
* If you’re using ** Solid** ,
128
- set [ ` options.jsxImportSource ` ] [ options-jsximportsource ] to ` 'solid-js' `
128
+ set [ ` options.jsxImportSource ` ] [ options-jsximportsource ] to ` 'solid-js/h ' `
129
129
130
130
Other JSX runtimes are supported by setting
131
131
[ ` options.jsxImportSource ` ] [ options-jsximportsource ] .
@@ -899,12 +899,12 @@ for more info.
899
899
``` js path="example.js"
900
900
import {compile } from ' @mdx-js/mdx'
901
901
902
- const js = String (await compile (' # hi' , {jsxImportSource: ' solid-js' , /* otherOptions… */ }))
902
+ const js = String (await compile (' # hi' , {jsxImportSource: ' solid-js/h ' , /* otherOptions… */ }))
903
903
```
904
904
</details >
905
905
906
906
Solid is supported when [ ` options.jsxImportSource ` ] [ options-jsximportsource ] is
907
- set to ` 'solid-js' ` .
907
+ set to ` 'solid-js/h ' ` .
908
908
909
909
See also [ ¶ Vite] [ vite ] and [ ¶ Rollup] [ rollup ] which you might be using, for
910
910
more info.
You can’t perform that action at this time.
0 commit comments