diff --git a/packages/react-router/src/ReactRouter/IonRouteInner.tsx b/packages/react-router/src/ReactRouter/IonRouteInner.tsx index ddeb0e74d3..51b2f5c5e1 100644 --- a/packages/react-router/src/ReactRouter/IonRouteInner.tsx +++ b/packages/react-router/src/ReactRouter/IonRouteInner.tsx @@ -2,29 +2,8 @@ import type { IonRouteProps } from '@ionic/react'; import React from 'react'; import { Route } from 'react-router'; -export class IonRouteInner extends React.PureComponent { - render() { - return ( - - ); - } -} +export const IonRouteInner = ({ path, render }: IonRouteProps) => { + return ( + + ) +} \ No newline at end of file