title: Can I return a Vue JS component in a callback method?
body: <p>Assume I have a method in a Vue.js component that returns a string to be rendered onto the page:</p>
  
  <pre><code>display: (arg) =&gt; {
      return arg.name
  }
  </code></pre>
  
  <p>And in the relevant HTML:</p>
  
  <pre><code>&lt;div html="component.display(arg)"&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>This has worked fine for me until now, but now I want to return HTML with some Vue-bound data on it:</p>
  
  <pre><code>display: (arg) =&gt; {
      return '&lt;button @click="myMethod(arg)"&gt;Click&lt;/button&gt;'
  }
  </code></pre>
  
  <p>Obviously, the above doesn't work. My research has led me to believe that the correct approach here would be to create a component and return it, but I just can't seem to get it working. How would I approach this problem?</p>