JSX not working at all with just "bun add hono"
this is what i am trying to make work, the basic example route without any TS, but all I get is this blank page on the browser
6 Replies
I don't think it failed, I think you're trying to render a list of objects
List of objects where? It is a single object <Content/>
Hey @Shy based upon this https://discord.com/channels/1011308539819597844/1012485912409690122/1293495908193013845, it seems this code is working. My guess is either their is some middleware which is effecting this or the bun runtime.
@Peтe are you using any middleware here?
just hono's cors()
Well, I think I found what the problem is @Aditya Mathur
I added the
tsconfig.json
Even if I do not use any TS on my project
And the error changed 🧐
Yep, that's it@Aditya Mathur a feedback I would like to give, in order to help other stupid devs like me that takes things way too literally is to slightly modify this phrase
"To use JSX, modify (...)"
"If you are not using Typescript, you must add this file in order to JSX to work out of the box"
When I put the pragma directives on top of the files using JSX, this [object Object] still persists
It does not work it seems