()
| 2 | import './App.css'; |
| 3 | |
| 4 | export default function App() { |
| 5 | const styles = useSpring({ |
| 6 | from: { |
| 7 | width: 0, |
| 8 | height: 0 |
| 9 | }, |
| 10 | to: { |
| 11 | width: 200, |
| 12 | height: 200 |
| 13 | }, |
| 14 | config: { |
| 15 | // duration: 2000 |
| 16 | mass: 2, |
| 17 | friction: 10, |
| 18 | tension: 400 |
| 19 | } |
| 20 | }); |
| 21 | |
| 22 | return <animated.div className="box" style={{ ...styles }}></animated.div> |
| 23 | } |
nothing calls this directly
no outgoing calls
no test coverage detected