Skip to content

Rendering route children #1

@norbertpy

Description

@norbertpy

First of all thanks for taking time and making these tutorials @wesbos. Using React 15.0.2 I have noticed that if I use:

{ React.cloneElement(this.props.children, this.props) }

As written in Main.js#L14 component I'll get warnings:

key is not a prop. Trying to access it will result in undefined being returned

Instead this will work:

{this.props.children}

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