JSFiddle - React, Tailwind, and code Playground
HTML
<script src="http://alasql.org/console/alasql.min.js"></script>
<b>Before:</b>
<div id="res1"></div>
<b>After:</b>
<div id="res2"></div>
JavaScript
alasql('create table city (name string, population number); \
create view bigcity (name) as select name from city where population > 1000000; \
insert into city values ("Moscow",11500000), ("Berlin", 3500000), ("Yoshkar-Ola",250000)');
alasql('select * into html("#res1") from bigcity');
alasql('insert into city values ("New York",16000000)');
alasql('select * into html("#res2") from bigcity');