Skip to content

ReactTransisitionGroup doesn't allow the option to append or prepend a child to siblings #6369

@mutley

Description

@mutley

The ReactTransistionGroup assumes that children should be prepended to their siblings when inserted into the parent. I think we should add an optional prop that allows configuration to prepend or append children. I have working code I can submit a pull request I just wanted to make sure I wasn't missing something.

childrenToRender.push(React.cloneElement(
  this.props.childFactory(child),
  {ref: key, key: key}
));

https://github.com/facebook/react/blob/master/src/addons/transitions/ReactTransitionGroup.js#L215-L218

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