React JS , provides ReactDOMServer object which enables to render components to static markup. Typically, it’s used on a Node server.

import ReactDOMServer from 'react-dom/server';

ReactDOMServer.renderToString(element)

Using this method we can generate HTML on the server and serve it to the browser. This allows for faster page loads and also allows search engines to crawl the page for SEO purposes.

References: