diff --git a/README.md b/README.md index 8f10f86a..b73023d3 100644 --- a/README.md +++ b/README.md @@ -142,6 +142,7 @@ AppRegistry.runApplication('MyApp', { rootTag: document.getElementById('react-ro * [react-native-web-player](https://github.com/dabbott/react-native-web-player) * [react-web](https://github.com/taobaofed/react-web) * [react-native-for-web](https://github.com/KodersLab/react-native-for-web) +* [rhinos-app](https://github.com/rhinos-app/rhinos-app-dev) ## License diff --git a/docs/guides/rendering.md b/docs/guides/rendering.md index dfc181f0..13d668e2 100644 --- a/docs/guides/rendering.md +++ b/docs/guides/rendering.md @@ -62,16 +62,13 @@ AppRegistry.runApplication('App', { initialProps: {}, rootTag: document.getElementById('react-app') }) - -// prerender the app -const { html, styleElement } = AppRegistry.prerenderApplication('App', { initialProps }) ``` ## Server-side rendering Rendering using the `AppRegistry`: -``` +```js import ReactDOMServer from 'react-dom/server' import ReactNative, { AppRegistry } from 'react-native' @@ -84,4 +81,4 @@ AppRegistry.registerComponent('App', () => AppContainer) // prerender the app const { element, stylesheet } = AppRegistry.getApplication('App', { initialProps }); const initialHTML = ReactDOMServer.renderToString(element); - ``` +```