DEV Community

loading...

Discussion on: What is React Server Side Rendering and should I use it?

Collapse
mladenstojanovic profile image
Mladen Stojanovic Author
  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 :)