JSFiddle - React, Tailwind, and code Playground

by runjep

HTML

<input data-bind="value:test,event: {
 blur: OnBlurEvent,onfocus:OnFocusEvent }"/>

JavaScript

var vm={
    test:ko.observable('jk'),
    OnBlurEvent:function(){
    alert('jk');
    }
,    OnFocusEvent:function(){
    alert('kkjk');
    }
}
        ko.applyBindings(vm);