✏️ Code CompletionRX React Hard⚡+35 XP
useRef Access
Complete to access the DOM input element.
✏️ Fill in the blank
const inputRef = useRef(null);
<input ref={inputRef} />
// focus the input:
inputRef.___focus();Complete to access the DOM input element.
const inputRef = useRef(null);
<input ref={inputRef} />
// focus the input:
inputRef.___focus();