Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

adding a if stement in jsx

render() {
    return (   
        <View style={styles.container}>
            {this.state.value == 'news'? <Text>data</Text>: null }
        </View>
    )
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #adding #stement #jsx
ADD COMMENT
Topic
Name
5+8 =