MCPcopy
hub / github.com/pmndrs/zustand / Child

Function Child

tests/basic.test.tsx:585–588  ·  view source on GitHub ↗
({ id }: Props)

Source from the content-addressed store, hash-verified

583 }
584
585 function Child({ id }: Props) {
586 const text = useBoundStore((s) => s.childItems[id]?.text)
587 return <div>{text}</div>
588 }
589
590 function Parent() {
591 const childStates = useBoundStore((s) => s.childItems)

Callers

nothing calls this directly

Calls 1

useBoundStoreFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…