Skip to content

DjoSmer/formik2nd

 
 

Repository files navigation

Formik2nd

Build forms in React, without the tears😭
and without unnecessary re-renders🥳

Fork changes

After changing a field, other fields aren't re-render.

Work only <Formik children/> as ReactNode. If you use <Formik component/> or <Formik children/> as function, formik run re-render after any change filed.

Formik - https://codesandbox.io/s/formik-rerender-test-v8gw7x
Formik2nd - https://codesandbox.io/s/formik2nd-rerender-test-forked-mlwvqr

Support React 16, 17, 18

FormikState move to FormikProps.state

FormikState used to be included in FormikProps. Now FormikState is in the state properties of FormikProps.

FormikProps.dirty => FormikProps.isDirty()

FormikProps.isValid => FormikProps.isValid()

FastFiled === Field

Difference between FastField and Field, FastField is only re-render after formik state change by its name.

FieldArray, methods pop, remove, unshift return Promise

hook useFormik don't work

Because now Formik without FormikProvider don't work.

isInitialValid has been deprecated and remove

<* render/> has been deprecated and remove

ErrorMessage, Field, FieldArray, Formik.

<Formik innerRef/> don't work


##Forked from jaredpalmer/formik

Related

  • TSDX - Zero-config CLI for TypeScript used by this repo. (Formik's Rollup configuration as a CLI)

MIT License.

About

Build forms in React, without the tears😭 and without unnecessary re-renders🥳

Topics

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Packages

No packages published

Languages

  • TypeScript 92.2%
  • JavaScript 5.7%
  • CSS 2.0%
  • Shell 0.1%