r/reactjs • • Jul 28 '19

Server-client rendering technique spectrum

https://developers.google.com/web/updates/images/2019/02/rendering-on-the-web/infographic.png
623 Upvotes

48 comments sorted by

View all comments

0

u/Fenris1729 Jul 29 '19

Personally I think SSR is disgusting, but obviously good for web crawlers

2

u/dreadful_design Jul 29 '19

Wait, why is it disgusting? How to implement it? The output is only good for the user.

2

u/Fenris1729 Jul 29 '19

I hate implementing UI on server side. SSR damages separation of concerns

2

u/dreadful_design Jul 29 '19

Huh? I'm unsure what you mean by "implementing UI on the server side". You write the same view logic that you would for the client and then just have the server compile it. SSR doesn't affect the way you write business logic if you don't want it to.

1

u/Fenris1729 Jul 29 '19

Well correct me if I’m wrong, but in my understanding SSR means using stuff like Jinja templating to render parametrised html on the backend, and sending it over to the UI. I’d much rather generate this html dynamically using react in a completely separate project, and simply use the backend to serve bundled react apps without touching any html

3

u/dreadful_design Jul 29 '19

render parametrised html

Parameters in html have nothing to do with SSR

I’d much rather generate this html dynamically using react

You can easily use react to implement SSR

and simply use the backend to serve bundled react apps without touching any html

The point of SSR is to not require the client to bootstrap the whole app after downloading your bundle. This reduces time to the user interacting with the application.

1

u/Fenris1729 Jul 29 '19

Well fair enough then