render html and javascript sent over api in react code example Example: how to use renderto string ReactDOMServer.renderToString(element)