You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
const{ children, render, ...props}=this.propsconstComponentOrFunctionOrAny=children||render||DEFAULT_CONTENT// is it a react component?if(ComponentOrFunctionOrAny.render||(ComponentOrFunctionOrAny.prototype&&ComponentOrFunctionOrAny.prototype.render))return<ComponentOrFunction{...props}/>// is it a render function?if(typeofComponentOrFunctionOrAny==='function')returnComponentOrFunctionOrAny({
...(ComponentOrFunctionOrAny.defaultProps||{}),
...props,})// must be null or a stringreturnComponentOrFunctionOrAny
I'm not 100% sure, but when using the "children" mode:
with a render like that:
It fails pitifully with
Cannot read property 'render' of undefined
.My guess is that's coming from the component detection in render-props.
Could we make it work?
The text was updated successfully, but these errors were encountered: