railslove / rails-ssr-react-demo

Demo of Rails with server-side rendered React
MIT License
8 stars 0 forks source link

Rationale #13

Open jhilden opened 5 years ago

jhilden commented 5 years ago

I just started to write a bit of text explaining the rationale behind this approach:


Rails and its server-side rendered response paradigm is still a very good match for many use cases as it avoids a lot of the complexities and performance issues of "modern" API+SPA web app architectures:

You can find good summary about somes downsides of SPA-architectures here: https://speakerdeck.com/moonglum/adequatejs-wie-viel-javascript-darf-es-denn-sein

On the other side Rails is not the best option for building great frontends:

So our approach tries to marry the advantes of both paradigms into a single solution:

server side rendered responsses + component based React UI

timomeh commented 5 years ago

Some more thoughts:

jhilden commented 5 years ago

Cool :+1:

What exactly do you mean by "dynamic interfaces"?

timomeh commented 5 years ago

Interactions with things like modals, form-wizards on a single page, animations, expandable menus, etc...

jhilden commented 5 years ago

:+1: (I first thought you are talking about programming interfaces)