how do you get the current page url in react code example Example: how to get url in react window.location.href