JSFiddle - React, Tailwind, and code Playground
JavaScript
try {
return JSON.parse("json"); //this will cause an error
} catch (error) {
alert("I have an error with the following details: \n" + error);
}
try {
return JSON.parse("json"); //this will cause an error
} catch (error) {
alert("I have an error with the following details: \n" + error);
}