top | item 25309396

(no title)

davidjnelson | 5 years ago

React supports server side rendering.

discuss

order

danjac|5 years ago

Sure, but where is your data and business logic going to live? If the answer is "just write it in JS" then it's no longer a question of "just use React" but "let's replace our entire stack with Javascript".

davidjnelson|5 years ago

Ya it really depends. I like redis and Postgres generally speaking for data, and Ruby on Rails generally for business logic. And you can certainly do universal rendering with that easily with react_on_rails. If you do end up needing more perf, maybe go would be interesting.

cercatrova|5 years ago

Why would the entire stack be JS? Even in server side React, it can still fetch from APIs, so presumably you have a backend to fetch from, in whatever language and database you want.

hu3|5 years ago

and then you need a nodejs server and sacrifices of kittens to webpack gods. Everything that libs like Stimulus aim to avoid.

davidjnelson|5 years ago

Ya depends on what you’re doing. Webpack is worth mastering though in general.