React 19.3 : transitions, nouveautés sur DOM
React annonce la version 19.3. Plusieurs fonctionnalités expérimentales passent en version stable : View Transitions et Fragment Refs.
1 / View Transitions
Il s'agit de nouveaux composants pour les éléments animés. On peut animer un élément à son apparition, disparition ou quand on le repositionne.
Exemple :
import { ViewTransition } from 'react';{isShowing && (<ViewTransition><Component /></ViewTransition>)}
2 / Fragment Refs