Created
June 10, 2017 05:35
-
-
Save iRoachie/d12e11937c7c5395dd350ddba9fd7662 to your computer and use it in GitHub Desktop.
Ternary Statement
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
class MeoMeo extends React.Component { | |
shouldComponentUpdate() { | |
return false | |
} | |
render() { | |
return this.props.type === 1 ? <Container1 /> : <Container2 /> | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment