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

Function App

react-spring-test/src/App.tsx:5–20  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

useEffectFunction · 0.90

Tested by

no test coverage detected