JSFiddle - React, Tailwind, and code Playground

by shriek

HTML

<!-- ko if: someValue -->

<h1>True</h1>

<!-- /ko -->

JavaScript

var model = {
    someValue: ko.observable(false)
};
ko.applyBindings(model);
(function () {
    setTimeout(function () {
        console.log("turning it on");
        model.someValue(true);
        console.log(model.someValue());
    }, 3000);
}());