Skip to content
RED SAG Skills
medium10 pts · first answer countsreactcomponentsrendering

An input that loses focus on each key

An input inside Row loses focus after every keystroke. What is the cause?

function Table() {
  const [q, setQ] = useState("")
  function Row() {
    return <input value={q} onChange={(e) => setQ(e.target.value)} />
  }
  return <Row />
}
Choose one answer

Discussion 0

Join free to post in the discussion.

Related questions