DEV Community

Discussion on: When do you build a SPA vs. a server-rendered app?

 
ben profile image
Ben Halpern

Cool. I think you're making the right call then. Any idea what the stack will look like specifically?

Thread Thread
 
_bigblind profile image
Frederik πŸ‘¨β€πŸ’»βž‘οΈπŸŒ Creemers

(P)Reat on the frontend, Django on the backend. Possibly preact.io in between the two, but I'm not sure about this, since it potentially increases the amount of data you download again; The cached JavaScript may already have the template you need in order to render the frontend, yet the server sends a bunch of markup.

Thread Thread
 
ben profile image
Ben Halpern

Nice

Thread Thread
 
_bigblind profile image
Frederik πŸ‘¨β€πŸ’»βž‘οΈπŸŒ Creemers

If I remember correctly, you're using Preact on dev.to, right? Are you noticing the differences with React much?

Thread Thread
 
ben profile image
Ben Halpern

That's the plan, but so far it's still just a plan and has only been fooling around with it outside. Haven't implemented it yet in anything on the site yet. We're pretty methodical with this stuff.