JSFiddle - React, Tailwind, and code Playground
by khanSharp
HTML
<span data-bind="visible:showMe">Show</span>
<span data-bind="visible:!showMe()">Hide</span>
<label><input type="checkbox" data-bind="checked:showMe"/>toggle</label>
JavaScript
var myModel={
showMe:ko.observable(true)
}
ko.applyBindings(myModel);