I was working on a Hono project where I needed to convert a JSX element to a string. I couldn’t find an easy way to do it in the official documentation. It turned out to be rather easy, even though all the LLMs were clueless :).
const component = <MatchesList matches={matches} />
const htmlString = component.toString()
Now, I will remember.