app moved to next.js
This commit is contained in:
1 parent
dcca513aea
commit
43af2996bf
48 files changed
+1147
-1027
No files matched your search
+1
-11
@@ -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
|
||||
Reference in new issue
Block a user