Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
bluebill1049
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
5 ms
·
1.
▲
by
bluebill1049
7y ago
Thanks very much for sharing ️
2.
▲
by
bluebill1049
7y ago
yes, the right tool for the right job.
3.
▲
by
bluebill1049
7y ago
no comment...
4.
▲
by
bluebill1049
7y ago
it's beautiful when it all works, it's horrible when requirements changes.
5.
▲
by
bluebill1049
7y ago
agree. it all looks good on paper until the requirement and design changes, then you are in world of pain.
6.
▲
by
bluebill1049
7y ago
oh sweet! that's great to hear. my pleasure to help.
7.
▲
by
bluebill1049
7y ago
interesting project! thanks for sharing
8.
▲
by
bluebill1049
7y ago
lol
9.
▲
by
bluebill1049
7y ago
Thank you very much byahya for your kind words and the lovely message. I am really glad could help you out with building forms. This is also one of the reasons why I am so passionate about building open source projects, be a dev only also m
10.
▲
by
bluebill1049
7y ago
wow thanks, chatmasta, I am really glad to hear this great feedback! I would like to put the credit towards React Hook because it really saves us to write less code and not to worry too much about the lifecycle methods.
11.
▲
by
bluebill1049
7y ago
I am not exactly sure what are you referring to, but I think this lib is pretty small compared with what is currently on the market, and I have tried my best, time and effort to keep the package as small and feature-rich as it can be, but I
12.
▲
by
bluebill1049
7y ago
yea, I have been working forms for a while, there is hardly a page where a form just couple inputs and a submit button. There are conditional display, design and UX requirements. I can see this working for a one-page simple form.
13.
▲
by
bluebill1049
7y ago
Agree, also there is also UI and UX's input on how the form should behave and its looking feel, it's not always just couple inputs and a submit button :)
14.
▲
by
bluebill1049
7y ago
I agree. the lib itself is primitive enough for you to build a JSON formate to generate forms. here is an good example: https://github.com/start-at-root/react-breeze-form
15.
▲
by
bluebill1049
7y ago
wow so cool~ https://picnicss.com/ love it. stared the project. <3
16.
▲
by
bluebill1049
7y ago
hey, nice lib you got there :) When I was deciding the API, I did have the idea of just collecting form input automatically (similar to forn), but there are few reasons which lead to the final decision: 1. Support React controlled component
17.
▲
by
bluebill1049
7y ago
This is a really good reply! In fact, React hook form is based on uncontrolled components, I guess the mainstream is still controlled, but I would like to give some fo the love to uncontrolled and explore the benefits from it.
18.
▲
by
bluebill1049
7y ago
everything is about pros and cons. there is no silver bullet for building form if you enjoy building a form with JSON schema good for you too. Thanks for checking it out tho :)
19.
▲
by
bluebill1049
7y ago
sounds good. i will be looking into that :)
20.
▲
by
bluebill1049
7y ago
Sorry I meant once I made it work, and it will be the syntax
21.
▲
by
bluebill1049
7y ago
I haven't got a plan to look into class component just yet, but will do in the near future.
22.
▲
by
bluebill1049
7y ago
import React from 'react'; import useForm from 'react-hook-form'; function App() { const { register, handleSubmit, errors } = useForm(); // initialise the hook const onSubmit = data => { console.l
23.
▲
by
bluebill1049
7y ago
yea would be similar for class component :)
24.
▲
by
bluebill1049
7y ago
That’s it! React hook form is basically doing that :) it’s uncontrolled.
25.
▲
by
bluebill1049
7y ago
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 yo
26.
▲
by
bluebill1049
7y ago
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
27.
▲
by
bluebill1049
7y ago
That sounds like a great idea! Maybe I should set up some quick templates.
28.
▲
by
bluebill1049
7y ago
Sure I will looking into it and add to the comparison.
29.
▲
by
bluebill1049
7y ago
Thank you. I was try to giving everyone some good context why built this form lib.
30.
▲
by
bluebill1049
7y ago
Hi guys, I have built a custom hook for form validation, please check it out and feedback welcome <3
More ›