You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Some older form components make use of a container that encompasses a component using the withFormik hook, and ends up splitting a form into multiple components (the actual form, and then the wired up version). I believe it's cleaner and more concise to make use of the <Formik> element to wrap the form and provide inline methods, rather than having to pass everything as props.
Some older form components make use of a container that encompasses a component using the
withFormik
hook, and ends up splitting a form into multiple components (the actual form, and then the wired up version). I believe it's cleaner and more concise to make use of the<Formik>
element to wrap the form and provide inline methods, rather than having to pass everything as props.This is an example of the
withFormik
:Component: https://github.com/acmucsd/membership-portal-ui/blob/master/src/auth/components/SignInForm/index.tsx
Container: https://github.com/acmucsd/membership-portal-ui/blob/master/src/auth/containers/SignInForm.tsx
And this is an example of
<Formik>
:https://github.com/acmucsd/membership-portal-ui/blob/master/src/store/components/AdminCollectionPage/index.tsx
The text was updated successfully, but these errors were encountered: