✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.
If you want to focus on an input field when a component mounts, is this piece of code correct?
useEffect(() => { inputRef.focus(); }, [inputRef]);
Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!