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

Function useSpringRef

packages/core/src/hooks/useSpringRef.ts:8–9  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

6const initSpringRef = () => SpringRef<any>()
7
8export const useSpringRef = <State extends Lookup = Lookup>() =>
9 useState(initSpringRef)[0] as SpringRefType<State>

Callers 5

ComponentFunction · 0.90
AppFunction · 0.85
AppFunction · 0.85
AppFunction · 0.85
AppFunction · 0.85

Calls

no outgoing calls

Tested by 1

ComponentFunction · 0.72

Used in the wild real call sites across dependent graphs

searching dependent graphs…