Custom Form with Formik and Yup Validation
This project showcases a donation form built using React, employing the Formik library for form management, and Yup for validation. The form integrates various input types like text, email, number, select, and textarea, complemented by a checkbox for user consent. The useField
hook from Formik is utilized to simplify the state management of form fields.
- Custom form components using Formik and Yup.
- Validation for name, email, amount, currency, text, and consent.
- React
- Formik
- Yup
-
Clone the Repository:
git clone https://github.com/your-username/your-repo.git
-
Navigate to the Project Directory:
cd your-repo
-
Install Dependencies:
npm install
Run the development server:
npm start
Visit [http://localhost:3000](http://localhost:3000) in your browser to access the form.