Comment by _heimdall

1 year ago

My rule of thumb is to render HTML where the state lives.

When state lives on the server, usually in a database, leave your templating engine there and ship HTML.

When state only lives in the client, think temporary UI state or animations, that rendering needs to happen in the client.

At least for the kinda of sites and apps I build, that almost always means most of the rendering is done on the server and client rendering is so small in scope that I don't need more than plain old JS or a web component.