Comment

Comment by hafley66

I got really good at rxjs and saw a way to make a custom jsx transform where every element is an Observable of string. I've been using it to make my site/blog and just got done writing a mini self contained jira board to iron out the interactivity aspects.

Since it's strings, I just render to file for backend static site generation, then frontend I use diffDom library to do efficient (enough) updates from html string without destroying dom state.

It works really well, but I also don't allow inline event listeners (they make everything much harder), so I've been learning how to leverage event delegation. All in all a pretty fun side project.

parent hafley66 1 year ago

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton