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

Function onClick

demo/src/sandboxes/webgl-switch/src/App.tsx:25–25  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

23 )
24 // Events
25 const onClick = () => set(toggle => Number(!toggle))
26 const onPointerOver = () => setHover(true)
27 const onPointerOut = () => setHover(false)
28 // Interpolations

Callers 4

handleClickFunction · 0.50
handleClickFunction · 0.50
handleClickFunction · 0.50
handleClickFunction · 0.50

Calls 1

setFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…