# `useSpring` React animation hook that updates a single numeric value over time according to spring dynamics. ## Usage ```jsx import {useSpring} from 'react-use'; const Demo = () => { const [target, setTarget] = (React as any).useState(50); const value = useSpring(target); return (
{value}
); }; ``` # Reference ```js const currentValue = useSprgin(targetValue); const currentValue = useSprgin(targetValue, tension, friction); ```