Answers for "react conditional if localhost"

0

react conditional if localhost

if (location.hostname === "localhost" || location.hostname === "127.0.0.1")
    alert("It's a local server!");
Posted by: Guest on August-22-2020

Code answers related to "Javascript"

Browse Popular Code Answers by Language