DEV Community

Discussion on: Some Top React Interview Questions

Collapse
 
johannchopin profile image
johannchopin

Where did you read that React does server-side rendering?

Collapse
 
ishwarkaushik profile image
Ishwar Kaushik

Wondering the same thing. I thought we may need something like Next to do SSR efficiently.

Collapse
 
iamludal profile image
Ludal πŸš€

React doesn't provide SSR on its own, but as Ishwar said, one can do it using Next.js

Thread Thread
 
maksimmedvedev profile image
MaksimMedvedev

react-dom/server's renderToString() and hydrate() should do the thing I think (with some little thousand-line additional codeπŸ˜‚)