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 54b1d9a commit ad4630fCopy full SHA for ad4630f
src/index.js
@@ -89,7 +89,7 @@ export default function renderToString(vnode, context, opts, inner) {
89
let props = { children, ...attributes },
90
rendered;
91
92
- if (typeof nodeName.prototype.render!=='function') {
+ if (!nodeName.prototype || typeof nodeName.prototype.render!=='function') {
93
// stateless functional components
94
rendered = nodeName(props, context);
95
}
0 commit comments