Skip to content

Commit

Permalink
Fix {nodeName:undefined} rendering [object Object] (fixes #38) (#47)
Browse files Browse the repository at this point in the history
  • Loading branch information
developit committed Sep 15, 2017
1 parent aa18e65 commit 2828f24
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ export default function renderToString(vnode, context, opts, inner, isSvgMode) {
}

// #text nodes
if (!nodeName) {
if (typeof vnode!=='object' && !nodeName) {
return encodeEntities(vnode);
}

Expand Down

0 comments on commit 2828f24

Please sign in to comment.