Vue.js

What is it?

Vue.js is a progressive JavaScript framework for building user interfaces. It is designed to be incrementally adoptable, meaning you can use as little or as much of Vue as your project needs. Vue combines reactive data binding with a component system, offering an approachable learning curve while being powerful enough for complex applications with its ecosystem of tools.

Practical example

A Vue single-file component has three sections in one .vue file: the template section contains HTML with Vue directives like v-for for loops and v-if for conditionals, the script section contains JavaScript with data, methods, computed properties, and lifecycle hooks, and the style section contains CSS that can be scoped to only affect this component. This keeps all related code together.

Test your knowledge

What is Vue's reactivity system based on?

Ask Lex
Lex knows the context of this term and can give targeted explanations, examples, and extra context.
Tip: Lex replies briefly in the widget. For more detail, go to full screen mode.

Quick links