Input that ignores typing
Users cannot type in this input: the text never changes. Why?
function NameField() {
const [name, setName] = useState('')
return <input value={name} />
}Discussion 0
Join free to post in the discussion.
Related questions
- Why React lists need keysFrontend Developer
- Changing a prop inside a childFrontend Developer
- What JSX turns intoFrontend Developer
- A component written in lowercaseFrontend Developer
- Adding a CSS class in JSXFrontend Developer
- Returning two elementsFrontend Developer
- A stray 0 on the pageFrontend Developer
- Handler that runs on every renderFrontend Developer