JSFiddle - React, Tailwind, and code Playground

by zoldello

HTML

<script src="http://cloud.github.com/downloads/SteveSanderson/knockout/knockout-2.1.0.js"></script>
        <ul>
            <li class="list" data-bind="foreach: SomeTexts">
                <span data-bind="text: Title"></span>
               
            </li>
        </ul>

CSS

.

JavaScript

function SomeText(title)
{
    var self = this;
    
    self.Title = title;
}

function VM()
{
    var self = this;
    
    self.SomeTexts = ko.observableArray([
        new SomeText("Test1"),
        new SomeText("Test2"),
        new SomeText("Test3")
    ])   
}

ko.applyBindings(new VM());