rm lib/component
This commit is contained in:
1 parent
f3b20b88f6
commit
c77dc74965
1 file changed
-15
@@ -1,15 +0,0 @@
|
|||||||
import React from 'react'
|
|
||||||
import {renderToStaticMarkup} from 'react-dom/server'
|
|
||||||
|
|
||||||
import App from '../components/App'
|
|
||||||
|
|
||||||
function renderApp({component, ...options}) {
|
|
||||||
const app = (
|
|
||||||
<App {...options}>
|
|
||||||
{component}
|
|
||||||
</App>
|
|
||||||
)
|
|
||||||
return renderToStaticMarkup(app)
|
|
||||||
}
|
|
||||||
|
|
||||||
exports.renderApp = renderApp
|
|
||||||
Reference in new issue
Block a user