Skip to content

Describe idea behind children prop #43

@maciekmpintive

Description

@maciekmpintive

Hello,

In readme and in examples I see that you suggest to put content as children of this component. I wonder what idea is behind this kind of approach instead use it as childless tag? Explanation in readme will be great. I can create PR with it if I get the purpose.

By the way I want to ask if code in render method can not be just replaced with return {this.props.children} for sake of simplicity and back compatibility?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions