React's Canary build introduces a ViewTransition component that wraps the web platform's View Transitions API. While the native API works fine in React by wrapping state updates in document.startViewTransition(), the new component automatically handles view-transition-name assignment and coordinates transitions with React's

5m read timeFrom frontendmasters.com
Post cover image
Table of contents
Using View Transitions in React (Classic Style?)Getting Ready to use <ViewTransition>Using <ViewTransition> in ReactSo… They Both Work Fine?

Sort: