react-transition-group icon indicating copy to clipboard operation
react-transition-group copied to clipboard

Transition group example for ternaries

Open peterwiebe opened this issue 1 year ago • 0 comments

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

peterwiebe avatar Oct 16 '24 16:10 peterwiebe