JSFiddle - React, Tailwind, and code Playground
JavaScript
var url = window.location;
//url = url.replace("?", '');
var a = url.hostname;
var b = url.pathname;
console.log(a + "--" + b);
var url = window.location;
//url = url.replace("?", '');
var a = url.hostname;
var b = url.pathname;
console.log(a + "--" + b);