anyway to use astro? #142
-
i cant see good way to use this in my astro project |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 2 replies
-
Astro is built on rehype. |
Beta Was this translation helpful? Give feedback.
-
yup, thats right rehypePlugins: [
[rehypeReact, {
createElement: React.createElement, //error
components: {
a: MyComponent, // error
}}]
], |
Beta Was this translation helpful? Give feedback.
-
exactly. |
Beta Was this translation helpful? Give feedback.
Astro provides it's own renderer for rehype, you may not be able to use
rehype-react
, but the Astro team would be able to confirm.Community support and discussions for Astro happen on their official discord /~https://github.com/withastro/astro#support