Skip to content

Add Helper method "Fragment" to wrap list of react child components #1

Description

@Javaherr

React has this Fragments to group a list of children without adding extra nodes to the DOM.

It would be really helpful to have Fragment helper method in both @cyclejs/react-dom & @cyclejs/react-native to wrap an array of child components in it.

Without it if we wrap an array of child components in div or View we get into "Each child in an array or iterator should have a unique key prop" issue.

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