Vue Reference
Reference pages for Vue — syntax, parameters, return values and runnable examples.
All Vue reference pages
computed()
computed() takes a getter function and returns a cached, read-only reactive ref that re-evaluates only when the reactive state its getter read changes.
ref()
ref() takes an initial value and returns a reactive ref object. You read and write the value through .value in script, while templates unwrap a top-level ref automatically.
This is the Vue reference on XCODX. Each page documents one feature completely — the exact syntax, its parameters and return value, the gotchas that trip people up, and runnable examples you can edit right on the page.
The pages below are grouped so related topics stay together. Pick one to dive in, or run anything you find in the Vue online compiler.