({ initialCount }: Props)
| 7 | } |
| 8 | |
| 9 | export function Counter({ initialCount }: Props) { |
| 10 | const [count, setCount] = useState(initialCount) |
| 11 | const increment = () => setCount(count + 1) |
| 12 | |
| 13 | return ( |
| 14 | <div> |
| 15 | Current value: {count} |
| 16 | <button onClick={increment}>Increment</button> |
| 17 | </div> |
| 18 | ) |
| 19 | } |
| 20 |
nothing calls this directly
no outgoing calls
no test coverage detected
searching dependent graphs…