Skip to content

a question of Children pass-through #34

@yueshuiniao

Description

@yueshuiniao
// option 1: extra div
return <div>{children}</div>

// option 2: unhelpful errors
return children

I try to return this.props.children directly,and there is no error. I test the version 15.4 and 16, Here is the demo.

So Is there something I misunderstood?

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