()
| 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 ( |
nothing calls this directly
no test coverage detected
searching dependent graphs…