()
| 1 | import React, { useState, useEffect } from 'react'; |
| 2 | |
| 3 | function Exercise1() { |
| 4 | const [count, setCount] = useState(0); |
| 5 | |
| 6 | useEffect(() => { |
| 7 | setCount(count + 1); |
| 8 | }, []); |
| 9 | |
| 10 | useEffect(() => { |
| 11 | setCount(count + 2); |
| 12 | }, []); |
| 13 | |
| 14 | return <h1>{count}</h1>; |
| 15 | } |
| 16 | |
| 17 | export default Exercise1; |
nothing calls this directly
no outgoing calls
no test coverage detected