Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
import App from './App'
import { render } from 'preact'
import { default as renderToString } from 'preact-render-to-string'
import { ServerStyleSheet } from 'styled-components'
import * as OfflinePluginRuntime from 'offline-plugin/runtime'
if (typeof window === 'undefined') {
/* eslint-disable */
const sheet = new ServerStyleSheet()
const html = renderToString(sheet.collectStyles())
const styleTags = sheet.getStyleTags()
/* eslint-enable */
}
if (typeof window !== 'undefined') {
render(, document.getElementById('root'))
OfflinePluginRuntime.install()
}