JSFiddle - React, Tailwind, and code Playground

by Lardpower

HTML

<script src="https://unpkg.com/vue/dist/vue.js"></script>
<div id="app">
  <app myprop="justastring235">
    <p>{{ myprop }}</p>
  </app>
</div>

JavaScript

const App = Vue.component('app', {
	functional: true,
	props: ['myprop'],
  render: function (createElement, context) {
    context.parent.$root.myprop = context.props.myprop;
    
    return createElement('div', context.data, context.children);
  }
});

new Vue({
	el: '#app',
  data: {
  	myprop: ''
  },
  components: [App]
});