zlacker

[parent] [thread] 1 comments
1. enw+(OP)[view] [source] 2020-11-29 06:50:36
That's what I mean. It feels much messier than JSX, where "putting strings together" is a clean first-class citizen.

With SSR, you need some component that's aware of every change, and that triggers those re-renders at sensible times (every render takes server resources). This all feels messy, compared to rendering just-in-time on the client-side.

replies(1): >>slmjkd+zo
2. slmjkd+zo[view] [source] 2020-11-29 13:12:02
>>enw+(OP)
I wonder what use case you're talking about, I don't have a lot of cases where re-render needs to be dealt with, unless I'm making a web app like a multi player photoshop in the browser, in those cases I won't use SSR. For most information based sites, e.g. Hacker News, Twitter, there's no need to track change and re-render, all the data can be ready on the server side like querying database or making request to third party APIs, then it'll just be piecing HTML strings.
[go to top]