Vue

*

1 Projects that I like that make use of Vue

2 Concepts

2.1 Data and props

In a nutshell:

Data is the private memory of each component where you can store any variables you need. Props are how you pass this data from a parent component down to a child component.

Props Versus Data in Vue: The Subtle Differences You Need to Know - Michael T…

That whole article is a handy overview of the difference between the two: https://michaelnthiessen.com/vue-props-vs-data/

2.2 Reactivity

This is to me so far the nicest thing about using Vue. You worry about state and logic, and the view is rendered dynamically without having to toggle bits of the DOM all over the place.

With Vue you don't need to think all that much about when the component will update itself and render new changes to the screen.

This is because Vue is reactive.

Instead of calling setState every time you want to change something, you just change the thing! As long as you're updating a reactive property (props, computed props, and anything in data), Vue knows to watch for when it changes.

Props Versus Data in Vue: The Subtle Differences You Need to Know - Michael T…

3 Elsewhere in the garden

Notes that link to this note (AKA backlinks).

This page last updated: 2021-07-24 Sat 12:02. Map. Recent changes. Source. Peer Production License. Webring: << random >>