From 93bd4afb1d535dba61de16bea60e896d34f3bb60 Mon Sep 17 00:00:00 2001 From: Ely Lucas Date: Mon, 25 Nov 2019 11:15:03 -0700 Subject: [PATCH] chore(react): fix tabs docs (#19995) --- core/src/components/tabs/readme.md | 58 ++++++++++++++++-------------- 1 file changed, 31 insertions(+), 27 deletions(-) diff --git a/core/src/components/tabs/readme.md b/core/src/components/tabs/readme.md index 48a37bd8454..0949efcbaed 100644 --- a/core/src/components/tabs/readme.md +++ b/core/src/components/tabs/readme.md @@ -176,34 +176,38 @@ will match the following tab: ### React ```tsx -import React from 'react'; -import { IonTabs, IonTabBar, IonTabButton, IonIcon, IonLabel, IonBadge } from '@ionic/react'; - export const TabsExample: React.FC = () => ( - - - - - Schedule - 6 - - - - - Speakers - - - - - Map - - - - - About - - - + + + + {/* + Using the render method prop cuts down the number of renders your components will have due to route changes. + Use the component prop when your component depends on the RouterComponentProps passed in automatically. + */} + } exact={true} /> + } exact={true} /> + } exact={true} /> + } exact={true} /> + + + + + Schedule + + + + Speakers + + + + Map + + + + About + + + ); ```