News for hackers. Stuff that matters.
Re:Show HN: React Hook Form – Simple Form Validation by bluebill1049 on Wednesday October 09, 2019 @04:36AM (#21201223)
Hi guys,

I have built a custom hook for form validation, please check it out and feedback welcome <3

Re:Show HN: React Hook Form – Simple Form Validation by zuck9 on Wednesday October 09, 2019 @05:02AM (#21201373)
Landing page is pretty impressive. Nice work :)
Re:Show HN: React Hook Form – Simple Form Validation by bluebill1049 on Wednesday October 09, 2019 @05:11AM (#21201420)
Thank you. I was try to giving everyone some good context why built this form lib.
Re:Show HN: React Hook Form – Simple Form Validation by helb on Wednesday October 09, 2019 @05:22AM (#21201464)
I've been playing with it for the past ~40 minutes and i really like it.

Can't wait to use it on a real project soon. In fact, i might start converting some older things to it in spare time.

The website and docs are absolutely amazing, best i've seen in a long time. Thank you for doing this!

Re:Show HN: React Hook Form – Simple Form Validation by bluebill1049 on Wednesday October 09, 2019 @05:27AM (#21201482)
Thank you so much for those kind words. This means so much to me seriously. I love making things and especially when others are enjoy to use. I will keep improving the site and package. Feel free to ask questions in github :) again thank you <3
Re:Show HN: React Hook Form – Simple Form Validation by latchkey on Wednesday October 09, 2019 @05:01AM (#21201364)
This looks great. How about a comparison against https://final-form.org/react ?
Re:Show HN: React Hook Form – Simple Form Validation by bluebill1049 on Wednesday October 09, 2019 @05:12AM (#21201422)
Sure I will looking into it and add to the comparison.
Re:Show HN: React Hook Form – Simple Form Validation by latchkey on Wednesday October 09, 2019 @05:15AM (#21201433)
Great thanks. One other helpful thing would be to start a project full of pre-wrapped components for various frameworks.

It would be lovely to just yarn add something that would give me Material-UI components already set up. I'm sure others would love a Bootstrap version... etc. The more you can lower the barriers to entry, the better.

Re:Show HN: React Hook Form – Simple Form Validation by bluebill1049 on Wednesday October 09, 2019 @05:19AM (#21201448)
By the way I did have a folder of examples as well. Quite lot of them: https://github.com/react-hook-form/react-hook-form/tree/mast... with codesandbox link too
Re:Show HN: React Hook Form – Simple Form Validation by latchkey on Wednesday October 09, 2019 @05:33AM (#21201515)
Sure, I've seen examples, but that is different than what I'm talking about. I want components. =) For example, with react-final-form, I wrote a thin wrapper for Material-UI component (example [1]).

While it didn't take me that long to do, it does have some weird edge cases that I had to google around for. It would be nice to not have to figure this stuff out with your framework too and would encourage me to try it out more quickly.

I know that formik and redux-forms are popular, but react-final-form and your framework seem to have a lot of overlap. Both seem to be pretty well done.

[1] https://gist.github.com/lookfirst/558fb2161fd633c7eaab412b85...

Re:Show HN: React Hook Form – Simple Form Validation by bluebill1049 on Wednesday October 09, 2019 @06:17AM (#21201725)
sounds good. i will be looking into that :)
Re:Show HN: React Hook Form – Simple Form Validation by bluebill1049 on Wednesday October 09, 2019 @05:17AM (#21201440)
That sounds like a great idea! Maybe I should set up some quick templates.