Vue

*
planted: 24/07/2021last tended: 03/03/2022

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…

2.3. Vuex

Vuex is based to some degree on the Elm architecture.

Most user interface bugs are state-related. Not a surprise when you consider that UI is one big concurrency problem. User interaction, animation, and asynchronous processes such as http requests, all happen constantly within a UI, returning who knows when, interleaving with each other, and mutating state. It’s terribly easy for these processes to step on each other’s toes and produce a broken app states.

ObservableStore - by Gordon Brander - Subconscious

3. Elsewhere

3.1. In my garden

Notes that link to this note (AKA backlinks).

3.2. In the Agora

3.3. Mentions

Recent changes. Source. Peer Production License.