Describe the difference between imperative code (Backbone/Angular) and declarative code (React).

Imperative is "how" to do something. When a model updates, you tell the view to listen to that model, and then in the view you tell the HTML what to do.
Declarative is "what" to do. It takes away the "how" allowing you to focus on what's most important.

Post a Comment

* Please Don't Spam Here. All the Comments are Reviewed by Admin.