Options API (Vue 2 style): tổ chức code theo loại (data, methods, computed, watch).
Composition API (Vue 3): tổ chức code theo logic concern, dùng setup() hoặc <script setup>.
- Composition API dễ tái sử dụng logic hơn qua composables
- TypeScript support tốt hơn trong Composition API
- Options API vẫn được hỗ trợ đầy đủ trong Vue 3
Khuyến nghị dùng Composition API với <script setup> cho project mới.