This document discusses animations in React. It covers two main types of animations: components entering/leaving the DOM and components already in the DOM. React provides lifecycle hooks and libraries like ReactTransitionGroup and ReactCSSTransitionGroup to help implement animations. ReactCSSTransitionGroup provides a simple way to add CSS transitions when components enter or leave using class names. The document includes examples of how it works and transitions elements scaling in and out.
36. Takeaways
1. Animations in React rely on new lifecycle hooks
2. ReactTransitions give more control and allow callbacks
when animations end
3. ReactCSSTransitions allow a simple hook for CSS-based
transitions