()
| 35 | let numRendered = 0; |
| 36 | |
| 37 | const Counter = () => { |
| 38 | const [state, dispatch] = useTracked(); |
| 39 | return ( |
| 40 | <div> |
| 41 | numRendered: {++numRendered} |
| 42 | <div> |
| 43 | <span>Count: {state.count}</span> |
| 44 | <button type="button" onClick={() => dispatch({ type: 'increment' })}> |
| 45 | +1 |
| 46 | </button> |
| 47 | <button type="button" onClick={() => dispatch({ type: 'decrement' })}> |
| 48 | -1 |
| 49 | </button> |
| 50 | </div> |
| 51 | </div> |
| 52 | ); |
| 53 | }; |
| 54 | |
| 55 | const TextBox = () => { |
| 56 | const [state, dispatch] = useTracked(); |
nothing calls this directly
no test coverage detected
searching dependent graphs…