</>
Skip to content
Vue lessons (2/43)

Vue — Introduction

What is Vue.js?

Vue.js is a progressive JavaScript framework for building user interfaces. It's designed to be incrementally adoptable.

Key features

  • Reactive data binding: UI updates automatically when data changes
  • Component-based: Build encapsulated components
  • Virtual DOM: Efficient rendering
  • Composition API: Flexible code organization
  • Small footprint: ~20KB gzipped

Why choose Vue?

FeatureVueReactAngular
Learning curveEasyMediumSteep
Bundle size20KB40KB65KB
TypeScriptOptionalOptionalRequired
State managementPiniaReduxNgRx
Template syntaxHTML-basedJSXHTML-based

Hello World

<!DOCTYPE html>
<html>
<head>
  <script src="https://unpkg.com/vue@3"></script>
</head>
<body>
  <div id="app">
    {{ message }}
  </div>

  <script>
    Vue.createApp({
      data() {
        return {
          message: 'Hello Vue!'
        }
      }
    }).mount('#app')
  </script>
</body>
</html>

The Vue way

<template>
  <div>
    <h1>{{ title }}</h1>
    <button @click="count++">
      Count: {{ count }}
    </button>
  </div>
</template>

<script>
export default {
  data() {
    return {
      title: 'My App',
      count: 0
    }
  }
}
</script>

Mini Practice

  1. Set up a Vue project with Vue CLI
  2. Create a "Hello World" component
  3. Bind a message to the template
  4. Add a click counter

Up Next

Continue with Get Started - Your first Vue application.

Related Topics

Frequently Asked Questions about Introduction

What is Introduction in Vue?

Introduction is a fundamental concept in Vue. This lesson explains it step by step with clear examples, making it easy for beginners to understand.

How do I learn Introduction?

Start by reading the explanation above, then try the code examples. Practice by modifying the examples and experimenting with different values. Hands-on practice is the best way to learn Introduction.

Why is Introduction important in Vue?

Introduction is essential for Vue development. Understanding this concept will help you write better code and solve real-world problems more effectively.