Dynamic paths in react router
问题 I am trying to migrate my website from traditional web app approach to react based app. In this process I am stuck with a problem related to urls. In my website, on server side I use Url Rewrite feature to map urls to their correct controller. But I am not able to figure out how to handle this thing in react router. My current, react router code looks like this <BrowserRouter> <Route exact path="/" component={Home}/> <Route path="/black-forest" component={Product}/> <Route path="/cakes"