JSFiddle - React, Tailwind, and code Playground

by lukaszr

JavaScript

$.when($.getJSON('/echo/json', function () {
    console.log('sucess');
}, function () {
    console.log('error');
})).then(console.log('get JSON ready!'));