Hands-On Full Stack Web Development with Aurelia
上QQ阅读APP看书,第一时间看更新

Why use a JavaScript framework?

In general, a JavaScript framework will help us do the following:

  • Organizing your code
  • Structuring it in a maintainable and ordered way
  • Making separation of concerns
  • Implementing tested solutions to the most common problems
  • Working on a base structure that any developer can follow

More specifically, a JavaScript framework is particularly helpful for applications where much of the business logic will take place on the client side—routing, templating, first-pass model validation, table building and pagination—pretty much whatever you might have used the server for in the past, but now without the latency and overhead that additional HTTP calls would have incurred.