ShakaCode | ShakaCode Blog | Rails On Maui Blog | Rails | ReactJs | JavaScript | Webpack | Productivity |

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





Try with window.location.href and let me know is there any error? if yes, please pass to us so we can provide you alternate solutions.