1👍
If you want to render the app with root component different from the <App>
, use
function createApp(rootComponent: Component, rootProps?: object): App
so,
const app = Vue.createApp(MyComponent, { el: '#app' })
Bud generally you’d use Router, see https://vitesse.netlify.app/ / https://github.com/antfu/vitesse for example
- [Vuejs]-How do I make it so the length of rows does not exceed 10?
- [Vuejs]-VUEJS Binding Image urls dynamically
Source:stackexchange.com