react router refreshes page 1

react router refreshes page

window.location.reload(false);

Here is what the above code is Doing:
1. It’s creating a new variable called “new_url” and setting it equal to the current URL.
2. It’s then adding a query parameter to the URL called “new_url” and setting it equal to the value of the “new_url” variable.
3. It’s then reloading the page.

Similar Posts