function renderToString(element) {
    const renderer = new ReactPartialRenderer(element, false);
    const markup = renderer.read(Infinity);
    return markup;
}
Render a ReactElement to its initial HTML. This should only be used on the
server.
See https://reactjs.org/docs/react-dom-server.html#rendertostring