JSFiddle - React, Tailwind, and code Playground
HTML
<script src="https://cdnjs.cloudflare.com/ajax/libs/riot/2.2.4/riot+compiler.min.js"></script>
<tag-1></tag-1>
<tag-2></tag-2>
<script type="riot/tag">
<tag-1>
<p>{ message }</p>
var self = this
this.message = 'loading...'
this.store = opts.store
this.store.on('message_recived', function(data) {
self.message = data.message + ' 1'
self.update()
})
</tag-1>
</script>
<script type="riot/tag">
<tag-2>
<p>{ message }</p>
var self = this
this.message = 'loading...'
this.store = opts.store
this.store.on('message_recived', function(data) {
self.message = data.message + ' 2'
self.update()
})
</tag-2>
</script>
JavaScript
async function(){
var user = await getUser('/')
var school = await gertSchool('/')
}