JSFiddle - React, Tailwind, and code Playground

VUE child component

by abernov

HTML

<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>Document</title>
</head>
<body>
  <app></app>
</body>
</html>

Vue

const childComponent = {
  template: `<div>that is child for test</div>`,
  mounted() {
     document.body.appendChild(this.$el)
  }
}


new Vue({
  el: 'app',
  data: {
  },
  template: `<div class="wrapper"><div>This is parnet for test <child-component/></div></div>`,
  components: {
  	childComponent
  }
})