Skip to content

Throws warning with key and refs when passing {...props} #6450

@KrisCoulson

Description

@KrisCoulson

facebook/react/pull/5744

It seems with the newest update v15 when passing props into a child component with the spread operator the console throws the warnings associated with this pull request.

seems to only throw issue when the component is not a class but only stateless component hence passing just {...props} and not {...this.props}

image

I am not accessing refs or keys in the child component

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions