Hide IonTabBars for some pages

Hi, I’m using Ionic Framework with React.

I got an app structure like this:

          <Route exact path="/some-modal">
          <Route exact path="/profile">
              user={user || null}
          <Route path="/" exact>
            <Frontpage user={user || null} />

          <IonTabBar slot="bottom">
            <IonTabButton tab="frontpage" href="/">
            <IonTabButton tab="profile" href="/profile">

Now, for some routes I do not want to show the IonTabs.

How should I do that?


Found this on stack overflow: Hiding IonTab on subpages - Ionic React 5 - Stack Overflow