Static generation requires two bundles to be generated from the React source. The first is the server bundle, which is bundled to target node. This bundle is required by the build script that calls the react-dom/server
package's renderToString
function.
The renderToString
function should be called once per page and should be passed the root React component for that page.
The second bundle is the client bundle which targets the browser.