Persist and rehydrate a Formik form
npm install formik-persistPersist and rehydrate a Formik form.
```
npm install formik-persist --save
Just import the component and put it inside any Formik form. It renders null!
`js
import React from 'react'
import { Formik, Field, Form } from 'formik'
import { Persist } from 'formik-persist'
export const Signup = () =>
$3
Only two props!
-
name: string: LocalStorage key to save form state to
- debounce:? number: Default is 300`. Number of ms to debounce the function that saves form state.- Jared Palmer @jaredpalmer
- Alternative storages (localForage, sessionStorage)
- Support AsyncStorage for React Native