[ci] yarn format
This commit is contained in:
parent
44a69f7dcb
commit
a9f2f6f6f9
1 changed files with 1 additions and 1 deletions
|
@ -37,7 +37,7 @@ function check(Component, props, children) {
|
||||||
function renderToStaticMarkup(Component, props, children, metadata) {
|
function renderToStaticMarkup(Component, props, children, metadata) {
|
||||||
const vnode = h(Component, { ...props, children: h(StaticHtml, { value: children }), innerHTML: children });
|
const vnode = h(Component, { ...props, children: h(StaticHtml, { value: children }), innerHTML: children });
|
||||||
let html;
|
let html;
|
||||||
if(metadata && metadata.hydrate) {
|
if (metadata && metadata.hydrate) {
|
||||||
html = renderToString(vnode);
|
html = renderToString(vnode);
|
||||||
} else {
|
} else {
|
||||||
html = reactRenderToStaticMarkup(vnode);
|
html = reactRenderToStaticMarkup(vnode);
|
||||||
|
|
Loading…
Add table
Reference in a new issue