React Router v6: Optional Route Parameters – Decision Pending on Native Support
Goal Implement routes that accept an optional parameter (e.g., /users/:id? ) while maintaining predictable matching behavior in React Router v6. Current Constraints React Router v6 removed Switch and introduced Routes , which uses strict matching. Optional parameters are not natively supported; developers must either split the route into two ( /users and /us