DEV Community

Discussion on: Thinking about going with PreactJs for dev.to

Collapse
 
ben profile image
Ben Halpern

No, we are explicitly not doing this. We plan to keep our basic Rails views for most of the rendered page, Preact will be responsible for rendering things like follow buttons, like buttons, personal extra data on the page, etc.

Collapse
 
Sloan, the sloth mascot
Comment deleted
 
jvanbruegge profile image
Jan van Brügge

Why not use a second Node server just for SSR? That's what I'm doing. My API is written in Haskell, but I also have a Node server that prerenders HTML for the client

Thread Thread
 
Sloan, the sloth mascot
Comment deleted
 
jvanbruegge profile image
Jan van Brügge

Isn't programming evey view twice a whole lot more work?
With docker, setting up another container you can route to is rather easy.
Maybe I will write an article about that