how can control in functionality on autofocus reactjs code example
Example: autofocus react
const emailInputRef = React.useRef(null);
React.useEffect(()=>{
emailInputRef.current.focus();
}, []);
<input type="email" name="email" ref={this.emailInputRef} />