JSFiddle - React, Tailwind, and code Playground

by Andy Mcloughlin

HTML

<p id="output"></p>
<p id="output1"></p>
<p id="output2"></p>

JavaScript

myTeam = {
    stats: {
        name: "liverpool",
        position: 4,
        played: 25,
        won: 15,
        drawn: 5,
        loss: 3,
        points: 50,
        nextGame: {
            date: "12 Feb 2014",
            against: "fulham"
        },
        squad: {
            howMany: 14,
            players: [{
                name: "bradley jones",
                position: "goalkeeper",
                born: "australia",
                played: 8,
                goals: 0,
                yellowCards: 1,
                redCards: 0
            }, {
                name: "Glen Johnson",
                position: "defender",
                born: "england",
                played: 129,
                goals: 7,
                yellowCards: 17,
                redCards: 0
            }, {
                name: "José Enrique",
                position: "defender",
                born: "spain",
                played: 72,
                goals: 2,
                yellowCards: 3,
                redCards: 0
            }, {
                name: "Kolo Touré",
                position: "defender",
                born: "cote d'ivoire",
                played: 17,
                goals: 0,
                yellowCards: 2,
                redCards: 0
            }, {
                name: "Daniel Agger",
                position: "defender",
                born: "denmark",
                played: 166,
                goals: 8,
                yellowCards: 13,
                redCards: 1
            }, {
                name: "Luis Alberto",
                position: "Midfielder",
                born: "spain",
                played: 9,
                goals: 0,
                yellowCards: 0,
                redCards: 0
            }, {
                name: "Luis Suarez",
                position: "forward",
                born: "uruguay",
                played: 97,
                goals: 61,
                yellowCards: 21,
                redCards: 0
 ...