Put in order · JavaScript and React course · Module 3: State and Events
onChange Syntax for a Controlled Input
Arrange the correct onChange attribute for a controlled input:
Items to put in order
- onChange=
- )}
- e.target.value
- {(e) =>
- setState(
You can check the correct answer by solving this task in the CodeWorlds game.