diff --git a/packages/react-router/src/ReactRouter/IonReactRouter.tsx b/packages/react-router/src/ReactRouter/IonReactRouter.tsx index f366705415..40208abe15 100644 --- a/packages/react-router/src/ReactRouter/IonReactRouter.tsx +++ b/packages/react-router/src/ReactRouter/IonReactRouter.tsx @@ -9,9 +9,11 @@ import { IonRouter } from './IonRouter'; * Wrapper around react-router-dom's BrowserRouter that provides a context for IonRouterOutlet. * Ionic developers should use IonReactRouter instead of BrowserRouter when using React Router. */ -export function IonReactRouter({ children, ...props }: PropsWithChildren) { +export function IonReactRouter({ children }: PropsWithChildren) { + // BrowserRouter is used so that the route state is kept in sync with the browser history. + // This reflects the current route in the URL. return ( - + {children} );