Static extraction in CSS-in-JS isn’t one-size-fits-all, and you don’t necessarily need traditional static extraction to build performant React apps. The best optimization is often the one that actually ships to production!
Let’s look at differences between CSS Transitions/Animations and the Web Animation API (WAAPI), plus some hands-on examples, starting from simple to more complex animations.