Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Oppiskele Challenge: Validation | Formik
Expert React

bookChallenge: Validation

Task

In this final challenge, let's implement validation logic for the input fields. The task is to check if the input field values are empty strings. If they are empty, it is necessary to display the corresponding warning messages. Follow the steps below:

  • Check if the input field responsible for the user's first name is empty.
  • Check if the input field responsible for the user's last name is empty.
  • Check if the input field responsible for the user's email is empty.

Oliko kaikki selvää?

Miten voimme parantaa sitä?

Kiitos palautteestasi!

Osio 4. Luku 13

Kysy tekoälyä

expand

Kysy tekoälyä

ChatGPT

Kysy mitä tahansa tai kokeile jotakin ehdotetuista kysymyksistä aloittaaksesi keskustelumme

Suggested prompts:

Kysy minulta kysymyksiä tästä aiheesta

Tiivistä tämä luku

Näytä käytännön esimerkkejä

Awesome!

Completion rate improved to 1.96

bookChallenge: Validation

Pyyhkäise näyttääksesi valikon

Task

In this final challenge, let's implement validation logic for the input fields. The task is to check if the input field values are empty strings. If they are empty, it is necessary to display the corresponding warning messages. Follow the steps below:

  • Check if the input field responsible for the user's first name is empty.
  • Check if the input field responsible for the user's last name is empty.
  • Check if the input field responsible for the user's email is empty.

Oliko kaikki selvää?

Miten voimme parantaa sitä?

Kiitos palautteestasi!

Osio 4. Luku 13
some-alt