# Server-side rendering Server-side rendering to HTML is supported using `AppRegistry`: ```js import App from './src/App'; import ReactDOMServer from 'react-dom/server'; import { AppRegistry } from 'react-native-web'; // register the app AppRegistry.registerComponent('App', () => App); // prerender the app const { element, getStyleElement } = AppRegistry.getApplication('App', { initialProps }); // first the element const html = ReactDOMServer.renderToString(element); // then the styles (optionally include a nonce if your CSP policy requires it) const css = ReactDOMServer.renderToStaticMarkup(getStyleElement({ nonce })); // example HTML document string const document = ` ${css}