JSFiddle - React, Tailwind, and code Playground
JavaScript
try {
test()
function test() {
$('body').append('OK')
}
} catch (e) {
$('body').css('color', 'red').append(e)
}
try {
test()
function test() {
$('body').append('OK')
}
} catch (e) {
$('body').css('color', 'red').append(e)
}