MCPcopy
hub / github.com/pmndrs/react-spring / Component

Function Component

packages/core/src/hooks/useSpring.test.tsx:120–129  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

118 const onRest = vi.fn()
119
120 function Component() {
121 useSpring({
122 ref: externalRef,
123 from: { x: 0 },
124 to: { x: 100 },
125 onStart,
126 onRest,
127 })
128 return null
129 }
130
131 await render(<Component />)
132

Callers

nothing calls this directly

Calls 4

useSpringFunction · 0.90
useSpringRefFunction · 0.90
startMethod · 0.65
getMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…