frontendBy Zahid
How SSR Worked Before React 19
Before React-19 version we can use ssr in react with the help of manual setup of node+reactDOM server.
import ReactDOMServer from 'react-dom/server'
const html = ReactDOMServer.renderToString( )
following:
Render React components to HTML on the server
Send the HTML to the browser
Hydrate it using ReactDOM.hydrate()
From React 18, we could also use:
renderToPipeableStream() (streaming SSR)
renderToReadableStream() (for edge runtimes)
#reactjs#javascript