JSFiddle - React, Tailwind, and code Playground
by Angelos Chaidas
HTML
<p>
Making an async call to https://www.adzuna.co.uk/jobs/delete_notification:
</p>
<textarea id="log"></textarea>
CSS
html, body {
width:100%;
height:100%;
margin:0;
padding:0;
}
#log {
width:80%;
height:80%;
font:monospace 16px;
}
JavaScript
'use strict';
var log = document.getElementById('log');
var result = fetch('https://www.adzuna.co.uk/jobs/delete_notification_aj?id=10909174&vhash=e1b98eab7db6a8ace7fffcaf1f9ccbf5259741ac');
result.then(function(response) {
log.value = log.value + "\n" + response;
return response.text();
}).catch(function(ex) {
log.value = log.value + "\n" + "CALL FAILED: " + ex;
});