5
MrMarco
2y

Building forms in React.js is like cutting sourdough bread with a blunt knife on a flimsy table

Comments
  • 0
    Have you tried react-hook-form? I haven’t since I barely use React anymore, but it looks like the most robust library to build forms in react. I’ve banged my head against the wall more than once building forms from scratch in react
  • 0
    @red-knot Yes I've used it extensively, it feels like a patchy workaround for something that doesn't fundamentally work in the first place
  • 1
    @red-knot I was just wondering what you moved on to?
  • 2
    @spongegeoff mainly working with Angular on the frontend at the moment. Angular forms are a delight compared to what needs to be done in React to get a decent form running
  • 0
    @MrMarco its not a workaround, React was built to render UIs not to handle forms, that (as many stuff on React) requires an external library or where it makes sense a DIY solution
  • 0
    @DEVil666 I always thought forms were/are a major part of UI on the net. That's the 'I' for 'interaction', no?
  • 0
    @spongegeoff yes but not all applications are going to have interactions mediated by complex forms and React wants to stay as general as possible.
Add Comment