skip to Main Content

Reactjs – I want to create a dynamic route in react js using react-route-dom. Route will be /property-in-city/ where "city" will be dynamic

Here's a routes I have created so far. <BrowserRouter> <Routes> <Route path="/" exact element={<FrontPage />} /> <Route path="/property-in-:cityName/" element={<PropertyListing />} /> <Route path="/property-in-:cityName/:singlePropertySlug" element={<PropertySingle />} /> <Route path="/associates" element={<AssociateListing />} /> <Route path="/about-us" element={<AboutUs />} /> <Route path="/contact-us" element={<ContactUs />}…

VIEW QUESTION
Back To Top
Search