react render to a string code example Example: how to use renderto string ReactDOMServer.renderToString(element)