formik2nd
TypeScript icon, indicating that this package has built-in type declarations

3.0.3 • Public • Published

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

New hook useFormikSelector

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.

Package Sidebar

Install

npm i formik2nd

Weekly Downloads

1

Version

3.0.3

License

MIT

Unpacked Size

677 kB

Total Files

24

Last publish

Collaborators

  • djosmer