What is Vue.js?

In short
Vue.js is a JavaScript framework for building user interfaces, the parts of a web page that people see and click. It builds on standard HTML, CSS and JavaScript. You describe what the page should show, and Vue keeps the page up to date when your data changes.
What Vue does
Vue is a JavaScript framework. A framework is a set of ready-made tools and rules that helps you build an application faster. Vue focuses on user interfaces, which means the buttons, forms, menus and lists on a web page.
Vue is built on top of plain HTML, CSS and JavaScript. You do not need to learn a new language. You write normal web code, and Vue adds a few extra features on top of it.
Two ideas sit at the core of Vue. The first is declarative rendering. Instead of writing steps that change the page one by one, you describe the output you want in a template, which is HTML with a few special attributes. Vue uses your JavaScript data to fill in that template.
The second idea is reactivity. Vue watches your data. When a value changes, Vue updates only the parts of the page that depend on it. You do not have to find those elements and change them yourself.
How it works
Here is a small example. A button shows a counter. Each click adds one to the count.
<div id="app">
<button @click="count++">
Count is: {{ count }}
</button>
</div>
The text in double curly braces is filled in from your JavaScript data. The @click attribute runs code when the button is clicked. When count changes, the text on the button updates on its own.
Vue offers two ways to write the JavaScript behind a component, called API styles. The Options API groups your code into named options such as data and methods. The Composition API lets you declare reactive values directly inside a function. Both styles use the same underlying system, so the core ideas you learn apply to either one.
Single-file components
In larger projects, Vue code is often written in single-file components. A component is a reusable piece of a page, such as a button or a card. A single-file component keeps the component's JavaScript, HTML template and CSS styles together in one file with the .vue extension.
This format is the recommended way to write Vue components when your project uses a build setup. A build tool is a program that converts your source files into files that browsers can run. Vue can handle much of that build setup for you.
Where Vue fits
Vue is designed to be flexible. You can use it in several ways, depending on your project. You can add it to an existing static HTML page without a build step. You can build a single-page application, where the browser loads one page and updates it as the user moves around. Vue can also be used for server-side rendering, where the page is prepared on a server before it reaches the browser.
Because of this flexibility, Vue is often described as a progressive framework. You can start small, with a few interactive elements on a page, and grow into a full application later. The core knowledge stays the same across these uses.
Common questions for beginners
You do not need to be an expert before you start. The documentation assumes basic knowledge of HTML, CSS and JavaScript. If those basics are new to you, learn them first. Experience with other frameworks helps but is not required.
A good first step is to try the examples in an online playground. You can change the code and see the result right away. The official guide also offers a tutorial and different learning paths, so you can pick the style that suits you.
If you want to compare Vue with other tools, read our reference pages and the official documentation. Choose the one that fits your project, team and experience.
FAQ
Is Vue.js a programming language?
No. Vue is a JavaScript framework. You write Vue code in JavaScript, HTML and CSS, the same languages used for normal web pages.
Do I need to know JavaScript before learning Vue?
Yes, basic JavaScript, HTML and CSS are assumed by the official documentation. If you are new to front-end development, it helps to learn these basics first.
Can I add Vue to an existing website?
Yes. Vue can enhance static HTML without a build step, so you can add it to a single page or part of a page. You can also use it to build a full single-page application later.
What is the difference between the Options API and the Composition API?
Both are two ways to write the same Vue component logic. The Options API groups code into options like data and methods, while the Composition API declares reactive state inside a function.
Sources
This page is based on the official documentation below. Read it for full detail.
Vue.js — official documentation ↗