Performance Optimization
Optimized Component
Example of how to use Optimized Component.
fade-in.tsx
Why Use will-change?
Performance Optimization
By using will-change, the browser knows in advance which properties are going to change and can prepare by creating a separate layer for that element, reducing the chances of layout shifts and rendering issues.Less Jank
Especially important for animations that might cause the browser to re-render or reflow elements on the page, reducing visual glitches during the animation.