()
| 1 | import { useEffect, useRef } from "react"; |
| 2 | |
| 3 | function App() { |
| 4 | const inputRef = useRef<HTMLInputElement>(null); |
| 5 | |
| 6 | useEffect(() => { |
| 7 | inputRef.current?.focus(); |
| 8 | }); |
| 9 | |
| 10 | return ( |
| 11 | <div> |
| 12 | <input ref={inputRef}></input> |
| 13 | </div> |
| 14 | ); |
| 15 | } |
| 16 | |
| 17 | export default App; |
nothing calls this directly
no test coverage detected