Skip to content

Commit 5b2d0f4

Browse files
developitJoviDeCroock
authored andcommitted
Remove text VNode casting from #257 (now handled by preactjs/preact#3801)
1 parent 5c6877d commit 5b2d0f4

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

src/index.js

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -145,15 +145,6 @@ function _renderToString(vnode, context, isSvgMode, selectValue, parent) {
145145
rendered =
146146
rendered +
147147
_renderToString(child, context, isSvgMode, selectValue, parent);
148-
149-
if (
150-
typeof child === 'string' ||
151-
typeof child === 'number' ||
152-
typeof child === 'bigint'
153-
) {
154-
// @ts-ignore manually constructing a Text vnode
155-
vnode[i] = h(null, null, child);
156-
}
157148
}
158149
return rendered;
159150
}

0 commit comments

Comments
 (0)