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.
renderRootComponent:false
1 parent edd667e commit 54b1d9aCopy full SHA for 54b1d9a
src/index.js
@@ -82,7 +82,7 @@ export default function renderToString(vnode, context, opts, inner) {
82
83
// components
84
if (typeof nodeName==='function') {
85
- if (opts && opts.shallow && inner) {
+ if (opts && opts.shallow && (inner || (opts && opts.renderRootComponent===false))) {
86
nodeName = getComponentName(nodeName);
87
}
88
else {
0 commit comments