Click in order · JavaScript and React course · Module 3: State and Events
Controlled Input Syntax
Click the elements in order to create a controlled input with onChange:
Items to click
- value={name}
- } />
- e => setName(e.target.value)
- <input
- onChange={
You can check the correct answer by solving this task in the CodeWorlds game.