JSFiddle - React, Tailwind, and code Playground

JavaScript

try {
    //your code
} catch (Exception ex) {
    //Change the exception severity acccordingly.
    Logger.LogException(siteUrl, ex, Logger.ExceptionSeverity.CriticalError);
}