Closed gaogaoinvincible closed 1 year ago
+1
I asked this in one of the discussions (link).
React/Preact components can be used like this: https://github.com/vuejs/vitepress/discussions/2183 but SSR won't work there.
Regarding that feature request on #548 for a framework-agnostic SSG, it won't be exactly feasible for us to implement that here. Currently, the functionality of VitePress is very closely coupled with Vue. React has totally different APIs for SSR, totally different router, markdown-it plugins too don't support JSX, we would need something like MDX + rehype for that to work. There'd be barely anything shared between the react and vue versions except Vite. It'd be like maintaining two separate tools. I'm not sure if we (the vue team members) are ready for that kind of commitment. Moreover, there are already many performant React SSGs like Nextra there in wild. vite-plugin-ssr (vike) too at one point might have nice support for cross framework SSG. But this is currently out of scope for VitePress.
Is your feature request related to a problem? Please describe.
Vitepress is so good,but I want use react,so...
Describe the solution you'd like
like @vite/vitepress-plugin-react
Describe alternatives you've considered
No response
Additional context
No response
Validations