JSFiddle - React, Tailwind, and code Playground
HTML
<script src="https://cdn.jsdelivr.net/g/riot@2.0(riot.min.js+compiler.min.js)"></script>
<script type="riot/tag">
<my-app>
<form>
First Name: <input name="firstName" value={firstName} oninput={handleChange}><br>
Last Name: <input name="lastName" value={lastName} oninput={handleChange}><br>
Full Name: {firstName + ' ' + lastName}
</form>
this.firstName = opts.firstName
this.lastName = opts.lastName
handleChange(e) {
this[e.target.name] = e.target.value
}
</my-app>
</script>
<my-app></my-app>
<script>
riot.mount('my-app', {firstName: 'Taro', lastName: 'Yamada'})
</script>