3 ms·
That’s because React isn’t a form library, it’s a rendering library. People have built form libraries on top of it. Here’s one I’ve used and contributed to that
by a-priori 6y ago
That’s because React isn’t a form library, it’s a rendering library. People have built form libraries on top of it. Here’s one I’ve used and contributed to that builds two-way binding for form state in React:
https://github.com/Shopify/quilt/blob/master/packages/react-form/README.md https://github.com/Shopify/quilt/blob/master/packages/react-...
- earthboundkid 6y agoOkay, but if React isn't going to handle forms for me, why am I wasting 100KB on it?
- a-priori 6y agoIf you're going to use a "if React isn't going to handle X for me, why am I wasting 100KB on it?" argument, then it wouldn't be 100KB for very long, now would it?
- earthboundkid 6y agoVue is smaller than React and does not need a form library.
- seumars 6y agoClassic webdev reply. Hey how should I properly work with data binding and forms in react? npm install react-proper-use-of-binding-and-forms-duhhh!