JSFiddle - React, Tailwind, and code Playground
by Jon Kittell
HTML
<input data-bind="value: contactPhone" />
<br />
<span data-bind="text: contactPhone"></span>
<br />
<button data-bind="click: alert">Submit</button>
JavaScript
function ViewModel() {
var self = this;
self.contactPhone = ko.observable("hi");
}
ko.applyBindings(new ViewModel());