Hacker News new | ask | show | jobs
by antihero 2 days ago
I've just found having TSX on the server and TSX on the client to be a fairly trusty abstraction, and also typesafe way to update the DOM.

The thing that is frustrating me about HTMX so far is: How do I build typesafe templates on the server? I'm trying out Aksama and it seems ok, is there something similar for JS?

Also the SPA abstraction of "your website is just a client that connects to a an API" is nice.

1 comments

Use tagged template literals. I wrote about it here https://news.ycombinator.com/item?id=48915935