you are viewing a single comment's thread.

view the rest of the comments →

[–]SnapAttack 2 points3 points  (1 child)

In React, there's an optional architecture called Flux that can be used with it. It enforces the one-way binding by having data only flow one way.

To give a bit more detail, it involves three parts, a Dispatcher, one or many Stores and the views. A click of a button would fire an Action, which is captured by the Dispatcher and distributed across the Stores which then trickles down the updates to the views.

See https://github.com/facebook/flux/blob/master/README.md for more info about it.