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

Function initSpringRef

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

Source from the content-addressed store, hash-verified

4import type { SpringRef as SpringRefType } from '../SpringRef'
5
6const initSpringRef = () => SpringRef<any>()
7
8export const useSpringRef = <State extends Lookup = Lookup>() =>
9 useState(initSpringRef)[0] as SpringRefType<State>

Callers

nothing calls this directly

Calls 1

SpringRefFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…