3 ms·
I work with React daily and love it but will freely admit that using it for simple data-binding for input heavy forms is a gigantic ass-pain. If you're using F
by cloakandswagger 11y ago
I work with React daily and love it but will freely admit that using it for simple data-binding for input heavy forms is a gigantic ass-pain.
If you're using Flux, you end up with an immense amount of boilerplate action and store code around every input field. The other option is to violate the model, make all your inputs uncontrolled and have boilerplate onChange listeners for each one.
Choose the right tool for the job. Angular's no-questions-asked data-binding is perfect for this scenario.
- i_s 11y agoIt is incredibly easy to write a function that creates an input field and keeps track of the state wherever you want, so I don't think that is a valid criticism at all.
- bryanlarsen 11y agoI've got a React app which is basically just one giant form. My inputs are not uncontrolled, I use boilerplate onChange listeners, and I'm not violating the "model".