currentURL = window.location; function switchForm(url) { if (url.contains("hunter") === true) { return <>>; } else if (url.contains("jeremy" === true)) { return <>>; } else { return <>>; } } switchForm(currentURL);