react check internet connection
// 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")
};
}