Skip to content

Handling anything (not just component or function) #6

@Offirmo

Description

@Offirmo

I'm not 100% sure, but when using the "children" mode:

<foo>
   Hello
</foo>

with a render like that:

const content = this.props.children || this.props.render
return renderProps(content, this.props)

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions