skip to Main Content

react-router-dom & nginx -> path /equipe/:id return index.html

I use react-router-dom in my react application like this: import {BrowserRouter, Route, Routes} from "react-router-dom"; // other code... ReactDOM.createRoot(document.getElementById("root") as HTMLElement).render( <BrowserRouter> <Routes> <Route path="equipe" element={<Equipe/>}/> <Route path="equipe/:id" element={<Equipe/>}/> {/*other route...*/} </Routes> </BrowserRouter> ); I specify that by launching my…

VIEW QUESTION
Back To Top
Search