πŸ“š node [[vue]]

Vue

Projects that I like that make use of Vue

Concepts

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/

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…

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

πŸ“– stoas
β₯± context
β₯… related node [[2004 02 22 big time bellevue geek dinner]]