Forked from szholdiyarov/ternaryOperatorReactRender.js
Created
October 31, 2018 12:00
-
-
Save ilhantekir/01aaf0cacb05eaa5eea6c42cf89c1874 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
class ItemViewComponent extends React.Component { | |
render() { | |
return ( <View> {this.displayJsxMessage()} </View> ); | |
} | |
displayJsxMessage() { | |
return {this.props.isGreeting && <Text> Hello, JSX! </Text>} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment