JSFiddle - React, Tailwind, and code Playground

by JonNorman

JavaScript

var fetch = $.ajax('http://www.yahoo.com/someFileThatDoesNotExist',{
    //dataType: 'script',
    error: function() {
        alert('error')
    },
    statusCode: {
        404: function() {
            alert('404')
        }
    },
    success: function() {
        alert('success')
    },
    complete: function(jqXHR, textStatus) {
        alert("complete:" + textStatus);
    },
    crossDomain:true
});