News for hackers. Stuff that matters.
Re:Things you forgot because of React by yojo on Tuesday August 15, 2023 @12:04PM (#37135619)
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.

Re:Things you forgot because of React by cjblomqvist on Tuesday August 15, 2023 @12:31PM (#37135984)
The 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)

Re:Things you forgot because of React by brianfryer on Tuesday August 15, 2023 @12:35PM (#37136038)
I too thought Vue would be a solid fit for what they described.
Re:Things you forgot because of React by test098 on Tuesday August 15, 2023 @03:48PM (#37138472)
useReducer is what you're looking for