Answers for "react check if localhost"

0

react check if localhost

if (window.location.hostname === "localhost" || window.location.hostname === "127.0.0.1" || window.location.hostname === "") {
    alert("It's a local server!");
}
Posted by: Guest on January-15-2021

Code answers related to "react check if localhost"

Code answers related to "Javascript"

Browse Popular Code Answers by Language