JSFiddle - React, Tailwind, and code Playground

by vi161

HTML

<!-- This is a *view* - HTML markup that defines the appearance of your UI -->

<p>First name: <strong data-bind='text: firstName'>todo</strong></p>
<p>Last name: <strong data-bind='text: lastName'>todo</strong></p>

JavaScript

// This is a simple *viewmodel* - JavaScript that defines the data and behavior of your UI
function AppViewModel() {
    this.firstName = "Bert";
    this.lastName = "Bertington";
}

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