JSFiddle - React, Tailwind, and code Playground

by lega911

HTML

<script src="https://angularlight.org/bin/alight_0.14.last.min.js"></script>
<div al-app>

  <child #child></child>

  <button @click="fromChild = child.get()">Get</button> {{fromChild}}

</div>

JavaScript

alight.component('child', function(scope) {
	scope.value = 'Hello';
  scope.get = () => scope.value
	return {
  	template: '<input type="text" al-model="value" />'
  }
});