Functional html composition not working #3841
Unanswered
simonh1000
asked this question in
Q&A
Replies: 1 comment 2 replies
-
I played around some more and add jsx support to my tsconfig.json and now it seems to compose. I think the documents are misleading? |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I saw https://hono.dev/docs/helpers/html#act-as-functional-component and thought that was exactly what I needed as it says "Since html returns an HtmlEscapedString, it can act as a fully functional component without using JSX" (emphasis added)
So I copied the code into an index.ts built with vite and immediately got errors reported in VSCode. in the terminal I get:
What am I doing wrong?
Full code
Beta Was this translation helpful? Give feedback.
All reactions