MCPcopy Create free account
hub / github.com/Klerith/react-hooks / onClick

Function onClick

src/04-useRef/FocusScreen.jsx:7–11  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

5 const inputRef = useRef();
6
7 const onClick = () => {
8 // document.querySelector('input').select();
9 // console.log(inputRef);
10 inputRef.current.select();
11 }
12
13
14 return (

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected