JSFiddle - React, Tailwind, and code Playground

Testing deferred callback/errback behavior

JavaScript

alert = console.log;

dojo.xhrGet({
    url: 'https://15.226.171.89/sigkb/actions/templates/index.json',
    handleAs: "json",
    handle: function() {
        alert('handle');
    },
    load: function() {
        alert('load');
        throw new Erro('hi');
    },
    error: function() {
        alert('error');
    }
});