1

I want to declare a path with an optional path parameter with React-router-dom version 6.2. I use this one but is not working

        <Route path="/somepage/:id?" element={<CartPage/>}/>
       
     
Bisrat
  • 21
  • 4

0 Answers0