What is vue.js according to its founders?
History of VueJS
Vue was created by Evan You after working for Google using AngularJS in a number of projects. He later summed up his thought process: “I figured, what if I could just extract the part that I really liked about Angular and build something really lightweight.” The first source code commit to the project was dated July 2013, and Vue was first released the following February, in 2014.
The core library comes with tools and libraries both developed by the core team and contributors.
- Devtools – Browser devtools extension for debugging Vue.js applications
- Vue CLI – Standard Tooling for rapid Vue.js development
- Vue Loader – a webpack loader that allows the writing of Vue components in a format called Single-File Components (SFCs)
- Vue Router – The official router for Vue.js
- Vuex – Flux-inspired Centralized State Management for Vue.js
- Vue Server Renderer – Server-Side Rendering for Vue.js
Why use Vue.js?
Library modularization using a framework is common in frontend development. Both React and Angular have modularization. But what differentiates Vue.js from other alternatives is its “high decoupling”, how easy it is to extend functionalities, and how well all parts work once more modules are included.
For example, if we want to organize and render small visual components, all we need is Vue.js’s ‘core’ library; it is unnecessary to include additional libraries. As the application grows, we have libraries to manage routes such as ‘vue-router’, libraries to manage the global state such as ‘vuex’ or libraries to build responsive web applications such as ‘bootstrap-vue’. Additionally, if our application needs to be optimized or needs good SEO, we can include the ‘vue-server-rendering’ library. In the following figure, we can see how the libraries we just mentioned are progressively included, from a small SPA to multi-page applications (MPA).
Vue.js has a special command line (CLI) created on Node JS. This tool allows us to start a project using a boilerplate (or base template). Additionally, the Vue.js development team maintains a Chrome extension that allows us to see how our component tree is rendered, how events are being launched and recorded, how the internal state of each component is saved, and how the global state of the component is behaving.
Who is Using Vue.js?
More than 700 companies are using Vue.js. Some of the most important are: Xiaomi, Alibaba, and Gitlab. The complete list is available at https://stackshare.io/vue-js/in-stacks.