React Sprawdź połączenie internetowe
// Trigger sth, when Connection comes back | Connection gets lost
function poopityScoop(){
window.ononline = (event) => {
console.log("Back Online")
};
window.onoffline = (event) => {
console.log("Connection Lost")
};
}
Light Lemur