JSFiddle - React, Tailwind, and code Playground

by jfriend00

HTML

<script src="http://files.the-friend-family.com/log.js"></script>
<button id="go">Run</button>

JavaScript

$("#go").click(runIt);

function runIt() {

    var data = {
        json: JSON.stringify({
            text: 'Echo JSON'
        }),
        delay: 1
    }

    log("Position 1");
    $.post('/echo/json/', data).then(function(data1) {
        log("Position 2");
        return $.post('/echo/json/', data);
    }).then(function(data2) {
        log("Position 3");
        return $.post('/echo/json/', data);
    }).then(function(data3) {
        log("Position 4");
    });
}