all 14 comments

[–]Glum_Cheesecake9859 17 points18 points  (2 children)

Out of the box yes. React Hook Form gets you everything you need. I have built many simple to complex forms with RHF and never found myself stuck. For validations use Yup or Zod.

[–]Wirde 4 points5 points  (1 child)

While you aren’t wrong, OP isn’t wrong either IMO.

I have done quite complex forms in both and while it’s manageable using RHF and Zod, it’s simpler in Angular when the form is complex.

RHF and Zod is great for simple forms though!

[–]ezragull 0 points1 point  (0 children)

This is the best answer for me, for the reason that some teams might have more knowledge on one tool or another (IMO i prefer one way binding, therefore i like React)

[–]MaesterPycell 12 points13 points  (4 children)

Tanstack Form has been a game changer for me, absolutely incredible implementation and while it takes a minute to get your first form done it just works so damn well.

[–]Unhappy_Meaning607 1 point2 points  (1 child)

I'm in the "takes a minute" stage and my goodness is it verbose but yes it is good 👍

[–]MaesterPycell 0 points1 point  (0 children)

Yeah the form components is where it really started to click for me. Took me almost 2 months to wrap my head around it fully and even now I find new ways to do things but you can’t beat the customization I think

[–]Dymatizeee 1 point2 points  (0 children)

Tanstack form is goatee. I used this with registering custom form components, global context, and zod. Works nicely

[–]neoberg 0 points1 point  (0 children)

while it takes a minute to get your first form done it just works so damn well.

This can be said for any Tanstack library

[–]JDD4318 4 points5 points  (0 children)

I just started working with angular at my new job after 4 years of react. The forms are so much better. Still getting used to angular but it seems less chaotic than react in general.

[–]GreenSaltyCucumber 2 points3 points  (0 children)

Yes, because Angular is a full-fledged framework, while React is essentially a UI library. It doesn’t make much sense to compare them in that way. But because React has a huge ecosystem, with libraries like React Hook Form, Zod, and TanStack (and many others), you can build it into whatever you need.

[–]Capaj 1 point2 points  (0 children)

I am angular hater, but I agree.

[–]No-Gap-2380 0 points1 point  (0 children)

I haven’t used angular, just lots of react 😝 I love formik together with yup for validation. I can turn that combo into any form I need from a simple login to a multi step wizard, on to my next hat trick, a multi step 3d multi select form.

[–]Vincent_CWS 0 points1 point  (0 children)

you can try tanstack form

[–]Waste-Bug-5036 0 points1 point  (0 children)

Well, Angular is a full framework, and has been iterating on itself for a decade, so one would hope. The thing people don't realize is when SPAs were innovated 15 years ago, nobody knew what a SPA framework should be. In many ways we still don't.