Skip to content

Commit

Permalink
Remove text VNode casting from #257 (now handled by preactjs/preact#3801
Browse files Browse the repository at this point in the history
)
  • Loading branch information
developit authored and JoviDeCroock committed Feb 25, 2023
1 parent 8cf7cef commit a30b419
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions src/index.js
Expand Up @@ -144,15 +144,6 @@ function _renderToString(vnode, context, isSvgMode, selectValue, parent) {
rendered =
rendered +
_renderToString(child, context, isSvgMode, selectValue, parent);

if (
typeof child === 'string' ||
typeof child === 'number' ||
typeof child === 'bigint'
) {
// @ts-ignore manually constructing a Text vnode
vnode[i] = h(null, null, child);
}
}
return rendered;
}
Expand Down

0 comments on commit a30b419

Please sign in to comment.