Implementing Validation on the Answer Form

Learn about implementing validation on the answer form.

Steps to implement validations on the answer form

Let’s implement validation on the answer form. We are going to validate that the content has been filled in with at least 50 characters. To do this, follow these steps:

  1. Open QuestionPage.tsx and import the FieldError styled component:

Get hands-on with 1200+ tech skills courses.