Vue.js Lesson 1: What is Vue.js?
Vue.js is a progressive JavaScript framework for building UIs. Unlike React (a library) or Angular (full framework), Vue is the sweet spot — easy to learn, powerful at scale.
Why Vue?
// Vue's design philosophy:
// 1. Progressive — use as much or as little as you want
// (Add to one HTML file, or build full SPA)
// 2. Approachable — if you know HTML, CSS, JS, you can start
// 3. Performant — fast reactive system, small bundle size
// 4. Versatile — works for simple widgets to complex apps
Vue vs React
// React:
// - Library (you choose routing, state, etc.)
// - JSX (JS-first, HTML inside JS)
// - More flexible but more decisions
// Vue:
// - Framework (comes with official Router, Pinia state)
// - SFC (Single File Components — HTML + CSS + JS in one .vue file)
// - More opinionated, easier to start
// - v-if, v-for, v-model directives (HTML-first feel)
Vue Powers
Companies using Vue.js: Alibaba, GitLab, Nintendo, BMW, and thousands more. Popular in Asia and Europe. Strong in corporate/enterprise apps.
🏋️ Practice Task
Visit vuejs.org. Read the “Why Vue?” page. Compare Vue to React and Angular in your own words. Find 3 companies using Vue. Look at a Vue Single File Component example — identify the template, script, and style sections.
💡 Hint: No code needed. Understanding Vue’s philosophy before diving in makes everything clearer.