This commit is contained in:
2022-01-05 17:52:20 +01:00
parent 25340429ee
commit 79753de78f
5 changed files with 21 additions and 23 deletions

View File

@ -9,9 +9,7 @@ import styles from "../styles/Home.module.css";
const Home: NextPage = () => {
const inputRef = useRef<HTMLInputElement>();
const focusInput = () => {
console.log("Focus")
if (inputRef.current) inputRef.current.focus();};
const focusInput = () => {if (inputRef.current) inputRef.current.focus();};
return (<>
<Head>