Skip to content

Commit 3177a48

Browse files
authored
Skip true values as Preact does (#48)
1 parent 6ce1519 commit 3177a48

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ export default function renderToString(vnode, context, opts, inner, isSvgMode) {
5858
let pretty = opts.pretty,
5959
indentChar = typeof pretty==='string' ? pretty : '\t';
6060

61-
if (vnode==null || vnode===false) {
61+
if (vnode==null || typeof vnode==='boolean') {
6262
return '';
6363
}
6464

0 commit comments

Comments
 (0)