JSFiddle - React, Tailwind, and code Playground

by Derek Leung

JavaScript

setInterval(function(){
    if(navigator.onLine){
        $("body").html("Connected.");
    }else{
        $("body").html("Not connected.");
    }
},1000);