3 ms·
Two-way data binding is a foot-gun for sure (I also worked in a large knockout codebase circa 2010), but man is the alternative a PITA when you’re just filling
by yojo 3y ago
Two-way data binding is a foot-gun for sure (I also worked in a large knockout codebase circa 2010), but man is the alternative a PITA when you’re just filling in a form. And the problem only shows up when you start propagating two-way data back up the tree.
If someone wants to invent a framework where two-way form binding is easy, but the data can’t leave the component without being dispatched as an action, I’m in.
- cjblomqvist 3y agoThe framework you're looking for is more or less Vue. (some will probably disagree, but I think most that have used Vue significantly won't)
- brianfryer 3y agoI too thought Vue would be a solid fit for what they described.
- test098 3y agouseReducer is what you're looking for