JSFiddle - React, Tailwind, and code Playground

by Serkan YarbaĹź

HTML

<input type="text" data-bind="value:name" />

Merhaba <span data-bind="text:name" />

JavaScript

(function () {
    viewModel = function (options) {
        var self = this;

        self.name = ko.observable(options.name);
    };


    vm = new viewModel({
        name: "serkan"
    });
    ko.applyBindings(vm);
})();