FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

GitHub Viewer

// @flow /* eslint-disable global-require */ import { server } from '@guardian/guui'; import head from 'components/head'; import Body from 'components/body'; // this should be managed by a route somehow import Application from 'views/404'; const app = server(); // the main export for the JVM JS interpreter to run // eslint-disable-next-line import/prefer-default-export export const render = (props: Object) => { const body = app.renderToString( ); const css = app.extractCriticalCss(body); return ` ${head(props, css)} ${body} `.trim(); };

Back | FazBrowse Home | New Git URL