title: Vue3 Creating Component Instances Programmatically on button click
body: <p>In vue2 it was be easy:</p>
  <pre><code>&lt;template&gt;
   &lt;button :class=&quot;type&quot;&gt;&lt;slot /&gt;&lt;/button&gt;
  &lt;/template&gt;
  &lt;script&gt;
   export default {
     name: 'Button',
     props: [ 'type' ],
   }
  &lt;/script&gt;
  </code></pre>
  <pre><code>import Button from 'Button.vue'
  import Vue from 'vue'
  
  var ComponentClass = Vue.extend(Button)
  var instance = new ComponentClass()
  
  instance.$mount() // pass nothing
  this.$refs.container.appendChild(instance.$el)
  </code></pre>
  <p>extend + create instance. But in vue3 it's has been deleted. Where are another way?</p>