JSFiddle - React, Tailwind, and code Playground
HTML
<script src="https://www.celljs.org/cell.js"></script>
JavaScript
var c = {
$cell: true, style: "padding: 20px;", _items: [], _counter: 0,
_add() { this.querySelector("#items")._items.push(this._counter++) },
$components: [{
$type: "link", rel: "stylesheet", href: "https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-alpha.6/css/bootstrap.min.css"
}, {
$type: "button", class: "btn btn-success", $text: "add",
onclick() {
this.$text = "current: " + this._counter;
this._add(this._counter);
}
}, {
id: "items", _items: [],
_todoItem(i) { return {$text: i} },
$update() { this.$components = this._items.map(i => this._todoItem(i)) }
}]
}