()
| 3 | import './App.css'; |
| 4 | |
| 5 | export default function App() { |
| 6 | const width = useSpringValue(0, { |
| 7 | config: { |
| 8 | // duration: 2000 |
| 9 | mass: 20, |
| 10 | friction: 10, |
| 11 | tension: 400 |
| 12 | } |
| 13 | }); |
| 14 | |
| 15 | useEffect(() => { |
| 16 | width.start(300); |
| 17 | }, []); |
| 18 | |
| 19 | return <animated.div className="box" style={{ width }}></animated.div> |
| 20 | } |
nothing calls this directly
no test coverage detected