...

/

Implementing Validation on the Answer Form

Implementing Validation on the Answer Form

Learn about implementing validation on the answer form.

We'll cover the following...

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:

import {
...
FieldError,
} from './Styles';
  1. In the ...