An open API service indexing awesome lists of open source software.

https://github.com/ger86/react-formik

In this project I want to show you how we could use the library Formik to handle our forms without tears.
https://github.com/ger86/react-formik

formik react react-formik react-forms reactjs

Last synced: 6 months ago
JSON representation

In this project I want to show you how we could use the library Formik to handle our forms without tears.

Awesome Lists containing this project

README

          

# 📝 React Formik

## Description

In this project I want to show you how we could use the library **Formik** to handle our forms without tears.

In my opinion **Formik** is the best library to work with forms in **ReactJS** thanks to its ease of use and its large number of options and configurations.

Besides, Formik has a seamlessly integration with **Yup**, a librar that allows us to validate our inputs defining in an object the requirements.

## You will learn

Integrating **Formik** in a React project using the provided high order component `withFormik` or the component `Formik`.

Validanting a form using **Yup** for defining a validation schema. .

## Run the project

Use `yarn start` to run the app in the development mode and open http://localhost:3000 to view it in the browser.

## To read more

- [Formik documentation](https://formik.org/)
- [Yup documentation](https://github.com/jquense/yup)
- [Managing forms in React with Formik](https://medium.com/javascript-in-plain-english/react-managing-forms-with-formik-c90a2ea75f4b)