MCPcopy
hub / github.com/dai-shi/react-tracked / Counter

Function Counter

tests/01_basic.spec.tsx:24–34  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

22 concurrentMode: true,
23 });
24 const Counter = () => {
25 const [state, dispatch] = useTracked();
26 return (
27 <div>
28 <span>{state.count1}</span>
29 <button type="button" onClick={() => dispatch({ type: 'increment' })}>
30 +1
31 </button>
32 </div>
33 );
34 };
35 const App = () => (
36 <StrictMode>
37 <Provider>

Callers

nothing calls this directly

Calls 1

useTrackedFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…