Skip to main content
✏️ 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();

✏️ Type the missing code: