What problem does it solve?
Rendering different components based on runtime state without switching routes can complicate UIs and degrade user experience. This Skill provides a straightforward pattern to swap components using Vue's <component> element and the is binding, while optionally preserving state with KeepAlive.
Core Features & Use Cases
- Dynamic component switching using the is attribute on the <component> element to render Home, Feed, History, or other components based on user interaction.
- State preservation across switches with <KeepAlive>, ensuring user inputs and internal state remain intact when changing views.
- Clear integration pattern: import component definitions, map them in a tabs-like object, and render the active one with a single binding.
Quick Start
Launch the Vue app and set currentTab to Home (or Feed/History) to see dynamic components render and switch without routing.