Compare Formik and React Final Form Side By Side
Visit here to see various forms developed with both Formik and React Final Form.
Please clone the repository from GitHub and then run the following command to start it:
npm install && npm start
You can also visit the live version of the project here.
Six different types of forms are developed to show various features of Formik and React Final Form. Four of the forms are developed with both Formik and React Final Form and the other two show specific features of each library. Here is the list of examples with reference to their code:
- Simple form: A login form with email and password validation. (Code: Formik, React Final Form)
- Form with schema validation: A login form validation using scheme generated by Yup. (Code: Formik)
- Form with network request: A sign up form with network request based on the value of one of the select boxes to fetch the options for another select box. (Code: Formik, React Final Form)
- Dynamic form (FieldArray) A todo list form with ability to add/remove text inputs for adding new todo items. (Code: Formik, React Final Form)
- Focus on error form A sign up form with ability to focus on the first input with error when you try to submit an incomplete form. (Code: React Final Form)
- Wizard form A multi step form with validation for each step. (Code: Formik, React Final Form)