title: Call app.use for plugin in the component itself in vue 3
body: <p>I'm building a component library that uses the <code>v-tooltip</code> plugin. So I need to install and use the plugin in the component itself instead using it globally with <code>app.use()</code>.
  I've read so many posts, and what I've tried so far doesn't work for my case.</p>
  <p>I know that I can access the app in the Composition API as:</p>
  <pre><code>import VTooltip from 'v-tooltip';
  import 'v-tooltip/dist/v-tooltip.css';
  
  const App = getCurrentInstance().appContext.app;
  App.use(VTooltip);
  
  </code></pre>
  <p>but that doesn't work, and I get this warning:
  <code>[Vue warn]: Component is missing template or render function. </code></p>
  <p>Any help would be greatly appreciated.</p>