You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+89-4Lines changed: 89 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -44,7 +44,7 @@ everything for you.
44
44
</summary>
45
45
46
46
[MDX](https://mdxjs.com/) enables you to combine terse markdown syntax for your
47
-
content with the power of React components. For content-heavy sites, writing the
47
+
content with the power of JSX components. For content-heavy sites, writing the
48
48
content with straight-up HTML can be annoyingly verbose. Often people solve this
49
49
using a WSYWIG editor, but too often those fall short in mapping the writer's
50
50
intent to HTML. Many people prefer using markdown to express their content
@@ -56,8 +56,8 @@ to insert an element that JavaScript targets (which is annoyingly indirect), or
56
56
you can use an `iframe` or something.
57
57
58
58
As previously stated, [MDX](https://mdxjs.com/) enables you to combine terse
59
-
markdown syntax for your content with the power of React components. So you can
60
-
import a React component and render it within the markdown itself. It's the best
59
+
markdown syntax for your content with the power of JSX components. So you can
60
+
import a JSX component and render it within the markdown itself. It's the best
61
61
of both worlds.
62
62
63
63
</details>
@@ -141,6 +141,16 @@ bundling. So it's best suited for SSR frameworks like Remix/Next.
141
141
142
142
</details>
143
143
144
+
<details>
145
+
<summary>
146
+
<strong>
147
+
"Can I use this other JSX libraries other than React?"
148
+
</strong>
149
+
</summary>
150
+
151
+
Yes! If JSX runtime you want to use is mentioned here - https://mdxjs.com/docs/getting-started/#jsx, it's guaranteed to work. Libraries, such as `hono` which has `react` compatible API also works. Check to [Other JSX runtimes](#other-jsx-runtimes) to get started.
JSX runtimes mentioned [here](https://mdxjs.com/docs/getting-started/#jsx) are guaranteed to be supported, however any JSX runtime should work without problem, as long as they export their own jsx runtime. For example, `hono` is not mentioned here, but as it has `react` compatible API, it can be used without any issues.
785
+
786
+
To do so, you will have to pass a configuration object and use JSX Component factory.
0 commit comments