In react router dom v6, Switch is replaced with Router, is there any way to pass a dynamic location to Router? Something likee here:
https://reactrouter.com/web/e