JSFiddle - React, Tailwind, and code Playground

HTML

Nombre: <input type="text" data-bind="value: Nombre" /><br />
Primer apellido <input type="text" data-bind="value: PrimerApellido" /><br />
Nombre: <span data-bind="text: Nombre"></span ><br />
Primer apellido: <span data-bind="text: PrimerApellido"></span ><br />

JavaScript

function ViewModel() {
    var self = this;
    
    self.Nombre= ko.observable("John");
    self.PrimerApellido= ko.observable("Doe");
}

// Activates knockout.js
ko.applyBindings(new ViewModel());