SolidJS renderToString with Hono: Undefined or 'React not defined' error
Hi everyone,
I'm trying to use SolidJS's
renderToString function within a Hono server to generate SVG components, but I'm running into issues. The renderToString call always returns undefined, or I get a "React is not defined" error (if I change tsconfig.json to "jsxImportSource": "solid-js"). Has anyone successfully integrated SolidJS's JSX rendering with Hono or has ideas how to do so? If so, could you share how you resolved the JSX compilation for SolidJS?
Thanks š
Here's a snippet of my code for context:
1 Reply
I have this same exact problem except Iām using Elysia in my case. Were you able to resolve this?