Composable functions are plain functions that return reactive state or methods, often prefixed with 'use'.
Step 2: Check syntax correctness
export function useCounter() { const count = ref(0); return { count }; } defines a function returning a reactive ref, which matches composable pattern.
Final Answer:
export function useCounter() { const count = ref(0); return { count }; } -> Option B
Quick Check:
Composable = function returning reactive state [OK]
Hint: Composable is a function returning reactive refs or state [OK]
Common Mistakes:
Using object syntax instead of function
Not returning reactive state
Using 'this' inside composable function
3. Given this mixin and component code, what will be logged when the button is clicked?