In Vue 3's Composition API, what two arguments does the
setup() function receive?- a
dataandmethods - b
propsandcontext✓ - c
thisandrouter - d
stateanddispatch
Explanation:
setup(props, context) is the entry point of the Composition API. props is a reactive object of the resolved props, and context is a plain object exposing attrs, slots, emit, and expose (it is NOT reactive itself, unlike props).