News for hackers. Stuff that matters.
Re:VanJS: A 0.9KB JavaScript UI framework by briantakita on Wednesday December 20, 2023 @04:48PM (#38714079)
JSX is still a dependency with different variants which can cause issues. For example, SolidJS uses JSX but a different variant of JSX, which is a bit more slimmer (innerHTML instead of dangerouslySetInnerHTML).

I experimented with VanJS integrating into Astro. No plugin was needed & getting the SSR HTML is as simple as calling `.render()`.

I wrote a fork of VanJS called relementjs & took this concept further, using `.toString()` instead of render. Now SSR components can be rendered inside a template string.

` <div>${my_component()}</div> `

There are no comments on this comment yet.