4 ms·
It is much simpler to animate between two classes in straight CSS. That's the primary reason I favor the `className` approach.
by pselbert 12y ago
It is much simpler to animate between two classes in straight CSS. That's the primary reason I favor the `className` approach.
- lobster_johnson 12y agoReact has a solution for that which actually automatically applies class names as components are inserted and removed: http://facebook.github.io/react/docs/animation.html http://facebook.github.io/react/docs/animation.html. It's not perfect, and it's better than doing it manually.