JSFiddle - React, Tailwind, and code Playground
by henser
JavaScript
fetch("https://www.frontify.com", {})
.then(async (response) => {
if (response.status >= 200 && response.status <= 299) {
return (await response.json());
}
})
.then((response) => {
console.log(response);
return response;
})
.catch((error) => {
if (error instanceof FinderError) {
throw error;
}
});