Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Learn Challenge: Add Initial Values | Formik
Expert React

bookChallenge: Add Initial Values

Task

Initialize values for the input fields. Each input field should be assigned an initial value based on the value of the name prop. Follow the steps below:

Follow the steps:

  • Initialize the firstName field with an empty string.
  • Initialize the lastName field with an empty string.
  • Initialize the mail field with an empty string.

Everything was clear?

How can we improve it?

Thanks for your feedback!

SectionΒ 4. ChapterΒ 11

Ask AI

expand

Ask AI

ChatGPT

Ask anything or try one of the suggested questions to begin our chat

Suggested prompts:

Ask me questions about this topic

Summarize this chapter

Show real-world examples

Awesome!

Completion rate improved to 1.96

bookChallenge: Add Initial Values

Swipe to show menu

Task

Initialize values for the input fields. Each input field should be assigned an initial value based on the value of the name prop. Follow the steps below:

Follow the steps:

  • Initialize the firstName field with an empty string.
  • Initialize the lastName field with an empty string.
  • Initialize the mail field with an empty string.

Everything was clear?

How can we improve it?

Thanks for your feedback!

SectionΒ 4. ChapterΒ 11
some-alt