Skip to content

React.createElement third argument is always an array as per docs #2853

Description

As per the docs, https://reactjs.org/docs/react-api.html#createelement

CreateElement takes third argument as an array. There is a mixed behaviour. Please have a look here typeof Children is Array for more than one children and typeof children is object if there is only one child.)

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