SolidJS Web renderToString returning undefined
I am trying to use Bun + Elysia for routing and future migration and I was trying to use SolidJS renderToString to render my JSX component to string to do SSR and I got undefied
2 Replies
Solid's JSX is a different language than React's JSX, they are two languages with the same syntax but that mean different things, as such you need a custom Babel transform to transpile Solid's own version of JSX, so unless there is a way to run that in Bun I don't think Solid is really usable in Bun
potentially you could precompile your code with babel and then feed it to Bun, or there is a version of Solid that kinda works with the normal JSX transform, but personally i don't consider it to be usable
let me see