MCPcopy
hub / github.com/jamiebuilds/unstated-next / CounterDisplay

Function CounterDisplay

example/index.tsx:14–23  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

12let Counter = createContainer(useCounter)
13
14function CounterDisplay() {
15 let counter = Counter.useContainer()
16 return (
17 <>
18 <button onClick={counter.decrement}>-</button>
19 <span>{counter.count}</span>
20 <button onClick={counter.increment}>+</button>
21 </>
22 )
23}
24
25function App() {
26 return (

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…