function renderToStaticMarkup(element) {
    const renderer = new ReactPartialRenderer(element, true);
    const markup = renderer.read(Infinity);
    return markup;
}
Similar to renderToString, except this doesn't create extra DOM attributes
such as data-react-id that React uses internally.
See https://reactjs.org/docs/react-dom-server.html#rendertostaticmarkup