app moved to next.js

This commit is contained in:
tmshv committed 2019-08-01 14:44:25 +03:00
1 parent dcca513aea
commit 43af2996bf
48 files changed
+1147 -1027

No files matched your search

+1 -11
View File
@@ -1,8 +1,7 @@
import React from 'react'
import {renderToStaticMarkup} from 'react-dom/server'
const App = require('../components/App')
const Html = require('../components/Html')
import App from '../components/App'
function renderApp({component, ...options}) {
const app = (
@@ -13,13 +12,4 @@ function renderApp({component, ...options}) {
return renderToStaticMarkup(app)
}
function getHtml(html) {
return (
<Html
html={html}
/>
)
}
exports.renderApp = renderApp
exports.getHtml = getHtml