Ionic react with hash routing

I was using IonReactRouter but since last couple of days its not working anymore, not sure if anything changed
how can I use hash with react router on ionic 5
I dont see any documentation on how to use hash on IonReactRouter

<IonReactHashRouter history={history} >
    <IonRouterOutlet >
      <Route path="/" component={Landing} exact />

You simply import that router from @ionic/react-router

import { IonReactHashRouter } from '@ionic/react-router';

             { /* Your routes */}

that is correct that code was working till last week, it stooped working this week don’t know how and why

Thanx looks like history was causing issue, once I removed history prop its working.

1 Like