onMounted
OnMounted is a lifecycle hook in Vue.js used with the Composition API. It registers a callback that runs after a component has been mounted to the DOM and the initial render has completed. The hook is imported from the vue package and is invoked inside the component’s setup function.
The primary purpose of onMounted is to perform actions that require access to the DOM or to
Usage is straightforward: within setup, call onMounted with a function containing the code to execute after
Cleanup is not performed automatically by onMounted. To remove listeners or timers when the component is unmounted,