What Is Backbone.js Used For?
How to Use Backbone.js
Even though Backbone.js is a front-end library, it has some helpful back-end features for using APIs. For example, you can create, read, update and delete records from a database.
When to Use Backbone.js
Why Use Backbone.js?
- Where should I store my data?
- Where should I place my functions?
- How do I wire functions so that the code remains clear and the calls are made in a sensible way?
- How do I make code maintainable for other developers that might contribute to the project?
Backbone.js answers these questions by providing you with:
- Models and collections to assist in representing collections of data
- Views to help you update the document object model (DOM) when data changes
- A set of conventions that improve collaboration in case other developers contribute to the project
Because of these main features, you can also consider Backbone.js a simple MV* framework because it includes models, views and optional extra features.