Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> If you look at this example[0] you'll see there's not a single useState, useEffect, etc.

Sorry to point it out, but there is useRef, useEffect and a useUserData on lines 48, 53, and 47 respectively.



Ah i missed those cause this is different from the demo they showed. But the point still stands. There’s not a useDtate per form field which is how react normally handles forms


Hmm, you can easily use a normal form submit to pull field information from. We always want to do fancy things where we need the info while it is being changed though.


Forms are one of those things that are so much easier to manage in Vue (and no extra dependencies)

https://v3.vuejs.org/guide/forms.html


Two-way bindings could seem like a great idea at first, but then you start building on top of it.


let me clarify it with the specific complication I've always encountered. You always need a function to parse raw input, a dictionary of strings, to the typed model object, or fail, then there should be a function to serialize the model back to the input attributes. You owing these 2 functions make 2 ways binding useless.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: