JSFiddle - React, Tailwind, and code Playground

JavaScript

document.body.style.cursor = 'wait';

//This is undo right?  So by commenting it out I should be left with a wait cursor.
//document.body.style.cursor = 'auto';




//The method below doesn't appear to work either.

//var cursor = 
    // document.layers ? document.cursor :
  //   document.all ? document.all.cursor :
//     document.getElementById ? document.getElementById('cursor') : null;


//cursor = 'wait';