Skip to content

Build forms in React, without the tears 😭

License

Notifications You must be signed in to change notification settings

DemoChimpDev/formik-with-sync

Β 
Β 

Repository files navigation

Build Status Stable Release Next Release Blazing Fast gzip size license Discord

Fork changes

  1. Adds onChange and onInit functions to formik Formik component props to support form sync where needed
  2. Adds handleChange and handleInit functions to withFormik

onChange and handleChange signatures are identical to onSubmit and handleSubmit

onInit and handleInit signatures are identical to onSubmit and handleSubmit with first values argument dropped.

onInit and handleInit functions return handlers to formik control functions, which could be used to update form state upon sync events.

Original Formik docs follows now

Overview

Join the community on Spectrum

Let's face it, forms are really verbose in React. To make matters worse, most form helpers do wayyyy too much magic and often have a significant performance cost associated with them. Formik is a small library that helps you with the 3 most annoying parts:

  1. Getting values in and out of form state
  2. Validation and error messages
  3. Handling form submission

By colocating all of the above in one place, Formik will keep things organized--making testing, refactoring, and reasoning about your forms a breeze.

Docs

In-browser Playgrounds

You can play with Formik in your web browser with these live online playgrounds.

Examples

Organizations and projects using Formik

List of organizations and projects using Formik

Authors

Contributors

Formik is made with <3 thanks to these wonderful people (emoji key):


Jared Palmer

πŸ’¬ πŸ’» 🎨 πŸ“– πŸ’‘ πŸ€” πŸ‘€ ⚠️

Ian White

πŸ’¬ πŸ› πŸ’» πŸ“– πŸ€” πŸ‘€

Andrej Badin

πŸ’¬ πŸ› πŸ“–

Adam Howard

πŸ’¬ πŸ› πŸ€” πŸ‘€

Vlad Shcherbin

πŸ’¬ πŸ› πŸ€”

Brikou CARRE

πŸ› πŸ“–

Sam Kvale

πŸ› πŸ’» ⚠️

Jon Tansey

πŸ› πŸ’»

Tyler Martinez

πŸ› πŸ“–

This project follows the all-contributors specification. Contributions of any kind welcome!


MIT License.


About

Build forms in React, without the tears 😭

Resources

License

Code of conduct

Stars

Watchers

Forks

Packages

No packages published

Languages

  • TypeScript 80.4%
  • JavaScript 16.4%
  • CSS 3.2%