(initial)
| 16 | }; |
| 17 | }, |
| 18 | useState(initial) { |
| 19 | let value = typeof initial === "function" ? initial() : initial; |
| 20 | return [ |
| 21 | value, |
| 22 | (next) => { |
| 23 | value = typeof next === "function" ? next(value) : next; |
| 24 | }, |
| 25 | ]; |
| 26 | }, |
| 27 | useEffect(run) { |
| 28 | run(); |
| 29 | }, |
no outgoing calls
no test coverage detected