Contenu du cours
Expert React
Expert React
4. Formik
Powerful Form Library for ReactGet Started with FormikCustom Formik HookInvolve Formik into React componentAdd Initial ValuesForm SubmissionForm ValidationChallenge OverviewChallenge: useFormik HookChallenge: Binding Formik with React ComponentChallenge: Add Initial ValuesChallenge: Form SubmissionChallenge: ValidationFormik Section Sum Up
6. Next Steps
Challenge: 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.
Tout était clair ?
Merci pour vos commentaires !
Section 4. Chapitre 13