Organizing Code by Logical Concern in Vue 3
summary
Shows three real implementations of the same custom listbox (options API, Composition API arranged like options, and Composition API organized by logical concerns) plus a fourth using helper functions from baliada.dev to lift template bindings. Uses Vue 3 Composition API, script setup, function refs, keyboard focus and programmatic focusing. Claims each data/computed usually becomes its own section (about 80–90% of cases) and that organizing by concern cuts long‑term “where is this?” churn versus sticking to options ordering. Code and demos are published.
AI-written summary · about
