Small Vite project built with learning purposes. It defines forms using native FormData API and some React Libraries like Formik
, React Final Form
, and React Hook Form
.
# Install dependencies
yarn
# Development
yarn dev
yarn tailwind:dev # (on secondary terminal)
# Build
yarn build
# Preview production
yarn preview
# Lint
yarn lint:fix
# Format (using Prettier)
yarn format
Personal preference:
- Does not consider files for the sake of simplicity.
Personal preference:
- Does not use
<Formik>
or<Field>
components in order to makeMlFormField
independant of the selected form. - Does not use
Yup
validation because things like required, maxLength, or minLength depends on the form field. Using nested Yup rules would be as verbose as not using them at all.
Package behaviour:
- It seems like does not allow to identify if some field has errors before being filled (e.g. required fields), leading to false positive validations.
Package behaviour:
- It won't show errors or any feedback until the user submit the form.