We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent de48e50 commit 695fe50Copy full SHA for 695fe50
src/react.ts
@@ -87,7 +87,7 @@ function renderElementNode(node: Node & ChildNode, options: Config) {
87
return React.cloneElement(element.override(element.attributes, node.textContent))
88
}
89
90
- if (element.childNodes) {
+ if (element.childNodes && element.childNodes.length > 0) {
91
return React.createElement(element.nodeName, element.attributes, render(element.childNodes, options))
92
93
return React.createElement(element.nodeName, element.attributes)
0 commit comments