App.jsx个
<Route path="/cart/:id?" element={<CartScreen />} />
In React-router-v6 can I still use this so that the id parameter is not always necessary?
if it exists it goes to the "CartScreen" component
if it doesn't exist it also goes to the "CartScreen"