This is a follow up geeksforgeeks tutorial about dynamic components in VueJS.
These are components that allow the user to switch over the components without updating the route of the Vue.js application itself.
:is: This field accepts a name string for the registered component or an actual component.
Syntax: In the component section, add the :is field and provide either the variable name or the component name as follows:
<component :is="currentComponent" />
VS Code + Vue (Official) (and disable Vetur).
- Chromium-based browsers (Chrome, Edge, Brave, etc.):
- Firefox:
See Vite Configuration Reference.
npm installnpm run devnpm run build