I can focus the input by get the element By ID, but is there a standard react way to do it?
function App() {
useEffect(() => {
let myInput = document.getElementById('myInput');
myInput.focus()
})
return (
<div className="App">
<input id="myInput" placeholder='your name'/>
</div>
);
}