Design Patterns · Middle · Question 23 of 75
How does MVVM differ from React's approach?
- ✓Correct answer: MVVM uses two-way binding, React uses one-way data flow
- 2MVVM has no data model, while in React a model is mandatory
- 3MVVM is used only on the server, React only on the client
Explanation
Angular and Vue support two-way binding (v-model, [(ngModel)]): field changes automatically go into the model. In React, the value and handler are wired explicitly (value + onChange) - more code, but a more transparent data flow.