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 8627862 commit 5a5e83fCopy full SHA for 5a5e83f
1 file changed
src/index.js
@@ -346,9 +346,7 @@ function _renderToString(
346
// Fragments are the least used components of core that's why
347
// branching here for comments has the least effect on perf.
348
return '<!--' + encodeEntities(props.UNSTABLE_comment) + '-->';
349
- }
350
-
351
- if (props.dangerouslySetInnerHTML) {
+ } else if (props.dangerouslySetInnerHTML) {
352
let html = props.dangerouslySetInnerHTML.__html || '';
353
return '<!--$h-->' + html + '<!--/$h-->';
354
}
0 commit comments