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

Function Parent

tests/basic.test.tsx:590–600  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

588 }
589
590 function Parent() {
591 const childStates = useBoundStore((s) => s.childItems)
592 return (
593 <>
594 <button onClick={changeState}>change state</button>
595 {Object.keys(childStates).map((id) => (
596 <Child id={id} key={id} />
597 ))}
598 </>
599 )
600 }
601
602 render(
603 <StrictMode>

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…