-
Hi, I'm not sure if this is a naive question, I was wondering if Code Hike can only be used with React, or could it be used with something like Svelte. I have come across this here: example1 , and example2, I also noticed on the README.md that: "First you need MDX v2 (or xdm). See MDX v2 docs on how to set it up." and I was wondering whether something like this would work for Svelte instead? I look forward to your response :) |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
It's a very good question. MDX already supports targets other than React, but Code Hike uses depends heavily on React. So it is limited to React. That said, you can import the whole MDX file as a React component. So if there are solutions to render React components from other frameworks this should work too. But I haven't tried. |
Beta Was this translation helpful? Give feedback.
It's a very good question. MDX already supports targets other than React, but Code Hike uses depends heavily on React. So it is limited to React.
That said, you can import the whole MDX file as a React component. So if there are solutions to render React components from other frameworks this should work too. But I haven't tried.