From a30b419731825e24098f85242651ee186c213965 Mon Sep 17 00:00:00 2001 From: Jason Miller Date: Tue, 15 Nov 2022 18:59:36 -0500 Subject: [PATCH] Remove text VNode casting from #257 (now handled by preactjs/preact#3801) --- src/index.js | 9 --------- 1 file changed, 9 deletions(-) diff --git a/src/index.js b/src/index.js index db6b6df1..8d9533a3 100644 --- a/src/index.js +++ b/src/index.js @@ -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; }