autofocus coz i'm a cross dev

This commit is contained in:
thekingofjibs 2020-03-18 17:18:45 +00:00 committed by Marks Polakovs
parent 8993f73709
commit 254ce13b88

View file

@ -33,7 +33,7 @@ const App: React.FC = () => {
);
} else {
return (
<div>
<div style={{marginLeft:"1.5%"}}>
<h1>Welcome to showplanner2</h1>
<input
type="text"
@ -41,6 +41,7 @@ const App: React.FC = () => {
value={inputVal}
onChange={e => setInputVal(e.target.value)}
onKeyPress={e=>enterKeyCont(e.key)}
autoFocus
/>
<button onClick={cont}>Continue</button>
</div>