4👍
Something like this.
console.clear()
const dnaMoleculeFileInfo = {
template:`<h2>I'm a dnaMoleculeFileInfo</h2>`
}
const someOtherComponent = {
template:`<h2>I'm some other component</h2>`
}
var app = new Vue({
el: '#app',
render(h){
// Add the props you want to these two components
const dna = h(dnaMoleculeFileInfo)
const other = h(someOtherComponent)
// return a container with both of them as children
return h("div", [dna, other])
}
})
<script src="https://unpkg.com/vue@2.2.6/dist/vue.js"></script>
<div id="app"></div>
👤Bert
Source:stackexchange.com