MCPcopy
hub / github.com/preactjs/preact / ReducerComponent

Function ReducerComponent

hooks/test/browser/useReducer.test.jsx:62–70  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

60 }
61
62 function ReducerComponent() {
63 const [state, dispatch] = useReducer(reducer, initState);
64 return (
65 <div>
66 <p>Count: {state.count}</p>
67 <DispatchComponent dispatch={dispatch} />
68 </div>
69 );
70 }
71
72 function DispatchComponent(props) {
73 return (

Callers

nothing calls this directly

Calls 1

useReducerFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…