JSFiddle - React, Tailwind, and code Playground
JavaScript
const error = {
response: {
status: 400
}
};
if(error?.response?.status === 400) {
console.log('here')
}
const error = {
response: {
status: 400
}
};
if(error?.response?.status === 400) {
console.log('here')
}