GoConqr hat ein neues Design! Sag uns, wie es dir gefällt.

Modul 3 von 6 · Medien

Transition Group component

Kostas Diakogiannis

Transition Group component

The TransitionGroup component

Let's try to enrich our existing todo application,by applying some transitions and animations within it. 

In our case we are going to use both components since we are going to fade in and fade out all the li elements inside our ul.

The first thing we want to do is to identify the elements we want to apply the transition and replace the parent element of these (in our case the  ul element) with the given component from the library (TransitionGroup) exactly as the code shows above.

This semantically is for the DOM an empty component that just notifies React that all the children of this can be transitioned when mounting or unmounting from the DOM.

 

Anleitung

Um im Kurs weiterzukommen, sende einen Versuch dieses Quiz ab. Du kannst ihn nach der letzten Frage absenden.

Zum gewählten Modul

Feedback

Worum geht es?

Wie gefällt dir das neue Design?

Dein Eindruck