How to set dynamic URL parameters to a variable value with react-router-dom

I looked quite a bit online for this but didnt seem to find the right answer to my question. How do I change a part of my URL to a value from for example UserInput. I am using react-router-dom v6 and react 18.2 I tried to use UseParams but it didnt work as wished. Also… Read More How to set dynamic URL parameters to a variable value with react-router-dom

404 page not found not working react-router v6 (using more than one param)

My shallow understanding is causing a simple issue with rendering the NotFound page… <Routes> <Route path="*" element={<NotFound />}/> <Route path="/" element={<Home />} /> <Route path="/:category/:id" element={<Article />} /> </Routes> When the uri contains one "/", it renders the matching component or NotFound component, however, when the uri includes two "/", for example "/asoejdnxx/acnoiw" which doesn’t… Read More 404 page not found not working react-router v6 (using more than one param)