Template
View
Model
compile
Change to Model
updates view
Change to View
updates model
Continuous Updates
Model is Single-Source-of-Truth
<input type="text" ng-model="name" />
Hello from AngularJS: {{name}}
<input type="text" onChange={
(e) => {
this.setState({name: e.target.value})
}
} value={this.state.name} />
Hello from React: {this.state.name}
App
Builds/modifies
Delivers events
React Virtual DOM
Builds/modifies
Delivers events
DOM
VirtualDOM makes React Faster
We made it premium and sold it at $50.