Which React Spring hook is used to animate a single value?
const [style, api] = useTransition(true, {
from: { opacity: 0 },
enter: { opacity: 1 },
leave: { opacity: 0 },
});
return <animated.div style={style}>I will fade in</animated.div>;
useState
useSpring
useTransition
useEffect
This question is part of this quiz :
Animations and Transitions in React