loading...

re: What is React Server Side Rendering and should I use it? VIEW POST

TOP OF THREAD FULL DISCUSSION
re: How does this work with dynamic routing, fluid (window aware) design and js based styling?
 
  1. Dynamic routes are not a problem since the fetching of the page will happen on the server (instead of on the client as it is normally the case). That info will pass down to the client where it will hydrate.

  2. Again no problems, the only thing to be aware of is that window is not present on the server, so you would have to do some checks like

if (typeof window !== 'undefined') { ... do your magic }

JS-based styling is supported, right now I am using Next.js with Styled Components, and it works like a charm :)

code of conduct - report abuse