How to get window URL using ReactJs

Hello React JS developers,
I working on one project. I need a help.
I want to get the URL of browser window in my code how to do this.
Process -: First i wrote a API call for getting the URL from backend.
open this URL using Window.location(“xyz”)
this URL will change after process in browser.
Now I want to get this URL value in my code
How to do this.

Thanks in advanced