Question · JavaScript and React course · Module 16: Error Handling and Suspense

The touched Pattern in Forms

Why do we use the touched pattern (onBlur) when displaying validation errors?

Answer options

  • So validation errors only appear after the user leaves the field
  • To make validation work faster
  • So the form doesn't require a submit button
  • To send data to the server after each field

You can check the correct answer by solving this task in the CodeWorlds game.