Skip to content

need to sanitize jsx in dev #641

Description

@ogolknev

in dev, when the key is passed to the component, jsx not only removes it from the props and stores it separately, but also adds a key getter to the props object to detect access to it.

When such a props object is passed directly to jsx, the error A props object containing a "key" prop is being spread into JSX is triggered

return jsx(WrappedComponent, props)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions