In a Vue Router setup, what does
<router-view /> do?- aIt renders a navigation menu built from the route config
- bIt renders the component matched by the current route✓
- cIt renders every registered route's component at once
- dIt only renders on the root
App.vue, nowhere else
Explanation:
<router-view /> is a placeholder that renders whichever component the current URL matches according to the router config. It can be nested for nested routes and can appear more than once (named views), but its core job is always 'show the component for the active route'.