Skip to content

Unexpected string key handling #2612

@rymohr

Description

@rymohr

I came across this one because I'd extended String.prototype.key with a custom key generator. React ends up treating the function itself as the child key, so it hides any strings that come after it.

http://jsfiddle.net/u2b6dac8/2/

Object key handling is documented and makes sense. Not sure it makes sense to handle string keys this way.

http://facebook.github.io/react/docs/multiple-components.html

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