|
|
|
|
|
by AdamCraven
4152 days ago
|
|
It is a shame to conclude two way data-binding should be a casualty in the maturation of frameworks. Like one way data-binding, it can be misused. Two-way data binding to properties is generally not good. It increases likelihood of problems as updates to one value have to be observed to adjust other values. It is easy for bugs to slip in and hard to reason about the code. Two-way data binding to methods is better. Methods that aren't focused on setting one value. In effect not direct data binding. It creates easy to reason about explicit code paths for changing of values. Observation of the change of properties is no longer required. It is a useful tool and should continue to be seen as such. |
|
[1]: http://facebook.github.io/react/docs/two-way-binding-helpers...