Question · JavaScript and React course · Module 12: React and TypeScript
Event Type for Input Value Change
What event type should be used in the onChange handler for an <input> element?
Answer options
- React.InputEvent<HTMLInputElement>
- React.UpdateEvent<HTMLInputElement>
- Event<HTMLInputElement>
- React.ChangeEvent<HTMLInputElement>
You can check the correct answer by solving this task in the CodeWorlds game.