Reactive
ELI5 — The Vibe Check
Reactive means your data and your UI are connected — when the data changes, the screen updates automatically, like magic. You don't have to manually tell the browser 'hey, go redraw that number'. The framework watches your data and handles it.
Real Talk
Reactive data is data that, when mutated, automatically triggers UI updates. In Vue, reactive() wraps an object in a Proxy that intercepts get/set operations to track dependencies and trigger re-renders. In React, reactive updates happen via setState calls.
Show Me The Code
import { reactive } from 'vue';
const state = reactive({
count: 0,
name: 'vibecoder'
});
// Changing state.count automatically updates the template
state.count++;
When You'll Hear This
"Use reactive() for objects and ref() for primitives in Vue." / "The UI isn't updating because you replaced the reactive object instead of mutating it."
Related Terms
Binding
Binding is connecting your data to your HTML so they stay in sync.
Composable
Composables are Vue's version of React hooks — reusable functions that bundle reactive state and logic together.
Reactivity
Reactivity is the system that makes your UI automatically keep up with your data.
State
State is a component's memory — data that can change over time and causes the UI to update when it does. Think of a counter: the number is state.
Vue
Vue is a JavaScript framework for building interactive UIs. It's famous for being easy to pick up — HTML developers feel right at home.