~/talk

Vue Development Composition API vs Options API

Talkat UtahJS Conf 2023 · on Friday, 2023-09-15· [vue, developer-experience]
links:none on file
slides:none on file

Compares Vue Options API versus Composition API by converting a concrete counter component and a useMouse composable from object-based data/methods/computed/watch into script setup using ref, reactive, computed, watch and DefineProps; shows a live counter, an API-querying watcher and a mouse-position hook that all run in the demo. Claims composition produces less code, easier modularization and reuse, while migrating older Vue 2 Options code to Vue 3 can require a full frontend rewrite. counter demo works VueUse ~200 utilities

AI-written summary · about

  1. 0:00Introduction to Vue.js
  2. 1:55The Options API
  3. 6:52Pros and cons of Options API
  4. 8:39The Composition API
  5. 12:28Transitioning to composition
  6. 14:12Composition API benefits
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.