Skip to content

Transition group example for ternaries #911

@peterwiebe

Description

@peterwiebe

The example for transition group to animate in/out elements is with an array. I haven't had time to dig into the code but are we not able to use a ternary?

<TransitionGroup>
  { isFirstItemVisible ? (
      <CSSTransition>
         ...
      </CSSTransition>
  ) : (
      <CSSTransition>
         ...
      </CSSTransition>
  )}
</TransitionGroup

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