[ci] yarn format

This commit is contained in:
matthewp 2021-07-09 13:41:50 +00:00 committed by GitHub Actions
parent 44a69f7dcb
commit a9f2f6f6f9

View file

@ -37,7 +37,7 @@ function check(Component, props, children) {
function renderToStaticMarkup(Component, props, children, metadata) {
const vnode = h(Component, { ...props, children: h(StaticHtml, { value: children }), innerHTML: children });
let html;
if(metadata && metadata.hydrate) {
if (metadata && metadata.hydrate) {
html = renderToString(vnode);
} else {
html = reactRenderToStaticMarkup(vnode);