Hacker News new | ask | show | jobs
by _heimdall 604 days ago
My rule of thumb is to render HTML where the state actually lives.

In a huge majority of cases I come across that is on the server. Some things really are client-side only though, think temporary state responding to user interactions.

Either way I also try really hard to make sure the UI is at least functional without JS. There are times that isn't possible, but those are pretty rare in my experience.