Or, instead of an event-based approach, you could could pass in an object and use Object.observe() to observe state changes.
It looks like React just implements the view in MVC, so you still need a separate way to observe the model.
Or, instead of an event-based approach, you could could pass in an object and use Object.observe() to observe state changes.
It looks like React just implements the view in MVC, so you still need a separate way to observe the model.