JSFiddle - React, Tailwind, and code Playground

by mofle

HTML

<div id="test"></div>

JavaScript

$('#test').load('/does_not_exist', function( responseText, textStatus ) {
    if ( textStatus === 'success' ) {
        console.log('Success');
    } else {
        console.log('Error');              
    }
});