function to render reactjs component at server side as static html page code example Example: how to use renderto string ReactDOMServer.renderToString(element)