Last active
January 22, 2020 06:52
-
-
Save omt66/b39b49d53034e78a99cf5d644874e9a0 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export interface IPanelProps { | |
txt?: string | |
} | |
export class PanelDemo1 extends Component<IPanelDemoProps, {}> { | |
render() { | |
const { panelName } = this.props | |
const selectedPanel = panelName === "panel1" ? <Panel1 /> : <Panel2 /> | |
return selectedPanel | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment