MCPcopy Create free account
hub / github.com/vercel/examples / App

Function App

framework-boilerplates/ionic-react/src/App.tsx:50–85  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

48setupIonicReact();
49
50const App: React.FC = () => (
51 <IonApp>
52 <IonReactRouter>
53 <IonTabs>
54 <IonRouterOutlet>
55 <Route exact path="/tab1">
56 <Tab1 />
57 </Route>
58 <Route exact path="/tab2">
59 <Tab2 />
60 </Route>
61 <Route path="/tab3">
62 <Tab3 />
63 </Route>
64 <Route exact path="/">
65 <Redirect to="/tab1" />
66 </Route>
67 </IonRouterOutlet>
68 <IonTabBar slot="bottom">
69 <IonTabButton tab="tab1" href="/tab1">
70 <IonIcon aria-hidden="true" icon={triangle} />
71 <IonLabel>Tab 1</IonLabel>
72 </IonTabButton>
73 <IonTabButton tab="tab2" href="/tab2">
74 <IonIcon aria-hidden="true" icon={ellipse} />
75 <IonLabel>Tab 2</IonLabel>
76 </IonTabButton>
77 <IonTabButton tab="tab3" href="/tab3">
78 <IonIcon aria-hidden="true" icon={square} />
79 <IonLabel>Tab 3</IonLabel>
80 </IonTabButton>
81 </IonTabBar>
82 </IonTabs>
83 </IonReactRouter>
84 </IonApp>
85);
86
87export default App;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected