Put in order · JavaScript and React course · Module 16: Error Handling and Suspense

Types of Form Errors

Order the types of form errors from earliest handled to latest:

Items to put in order

  • Server errors after submission (API response)
  • Field validation in onChange/onBlur (immediate)
  • Network errors in catch (no connection)
  • Validation of all fields in handleSubmit (before sending)

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