3 ms·
May I add one more point: - the render() method provides a way to declare what the DOM looks like (React-style) OR manipulate the DOM imperatively (Backbone st
by akrymski 12y ago
May I add one more point:
- the render() method provides a way to declare what the DOM looks like (React-style) OR manipulate the DOM imperatively (Backbone style)
This helps the Flux one-directional data flow, which you can see in the ToDo example. Controller's model is actually its internal state by default, so all data mutation must go through the main data store.
Thank you so much for boiling it down to the key points, I've been struggling to explain the details clearly. Really the best way to understand what's going on is to read the ToDo app as it's only 100 lines.
We are using this for PhoneGap and node-webkit apps, it's a perfect for for mobiles where you need fine-grained control over memory and performance, and you know the runtime you're developing against (webkit) so there isn't a goal to get this running across every browser like React or Backbone.