Skip to content

return multiple values from render #158

Closed
@catmando

Description

@catmando

This is a lot clearer now than a year ago... Seems very straight forward.

https://pawelgrzybek.com/return-multiple-elements-from-a-component-with-react-16/

Also needs to deal with FRAGMENTS.

You can return multiple values from a render block, but they all need to have unique keys.

If they don't have unique keys (i.e. they will be static) they should be wrapped in a React.Fragment psuedo component

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestready-to-releaseInternal Use Only: Has been fixed, specs passing and pushed to edge branch

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions