MCPcopy Create free account
hub / github.com/QuarkGluonPlasma/react-course-code / App

Function App

react-spring-test/src/App2.tsx:4–23  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

2import './App.css';
3
4export 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}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected