Giter Site home page Giter Site logo

Comments (10)

bluebill1049 avatar bluebill1049 commented on July 18, 2024 3

react-hook-form and Formik?

First of all, both libs try to solve the same problem which is making form building experience easy and great. However, there are some fundamental differences between the two, react-hook-form is built with uncontrolled input in mind and try to provide your form with best performance and least re-render if possible. On top of that, react-hook-form is built by React Hook and used as hook, which means there is no Component for you to import. Here are some of the differences:

React Hook Form Formik
Component uncontrolled controlled
Rendering minimum re-render re-render according to local state (as you type in the input)
API Hooks: no components to wrap Component + Hooks: wrapper components (RenderProps, Form, Field)
Status Small Community: New lib Large Community: well-established/most popular form lib in the community
Size Small Meidum 2x bigger than React Hook Form
Validation Built-in & Yup Build your own & Yup
Learning curve Low Medium

Conclusion:
I believe both lib/solution can make and achieve great results in form building, and both libs are trying to help developers around the world to make form building life easier and fun.

@barrymay @JeromeDeLeon @stramel feel free to add or edit

from documentation.

Skaronator avatar Skaronator commented on July 18, 2024 2

You can actually move issues to other repos https://help.github.com/en/github/managing-your-work-on-github/transferring-an-issue-to-another-repository

from documentation.

bluebill1049 avatar bluebill1049 commented on July 18, 2024 1

thanks @harobed I will update that tonight :) it's pretty much controlled vs uncontrolled and react hook form is purely build by hook too.

from documentation.

bluebill1049 avatar bluebill1049 commented on July 18, 2024 1

actually I am going to leave my answer here and we can all contribute to the answer.

from documentation.

bluebill1049 avatar bluebill1049 commented on July 18, 2024 1

@harobed you want to migrate this issue to the website repo? I am going to close it here for now, cause it's not an issue.

from documentation.

bluebill1049 avatar bluebill1049 commented on July 18, 2024

let me know what you guys think of the answer as well before I updated it on the website. feel free to adjust and leave questions too.

from documentation.

bluebill1049 avatar bluebill1049 commented on July 18, 2024

What about the lib learning curve? IMHO react hook form is very easy to use because it's built by an average developer hahaha and tries to make form simple for myself and others.

from documentation.

harobed avatar harobed commented on July 18, 2024

What about the lib learning curve? IMHO react hook form is very easy to use

@bluebill1049 yes, react-hook-form learning curve is lower that formik.

from documentation.

harobed avatar harobed commented on July 18, 2024

Thanks ❤️ @bluebill1049

from documentation.

bluebill1049 avatar bluebill1049 commented on July 18, 2024

my pleasure and thank you for your suggestion too :)

from documentation.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.