How to Register Components Globally in Vue js 3
Registering components globally in Vue js 3 makes them available in your entire application without importing them each time you need them.
Registering global components
To register a component globally in Vue js 3 you can do it like this:
import { createApp } from 'vue';
import HomeComponent from './HomeComponent.vue';
const app = createApp({});
app.component('HomeComponent', HomeComponent );
//use it every where in your app
<HomeComponent />