MCPcopy Create free account
hub / github.com/ZenNotes/zennotes / ref

Function ref

packages/app-core/src/components/EditorSelectionToolbar.tsx:204–209  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

202 // Assigns the next roving-order ref index as each control renders.
203 let idx = 0
204 const ref = (): ((el: HTMLButtonElement | null) => void) => {
205 const at = idx++
206 return (el) => {
207 itemRefs.current[at] = el
208 }
209 }
210
211 return (
212 <div

Callers 1

EditorSelectionToolbarFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected