React - redux, jsx中写js示例

{ this.state.avatarSource === null ? <Text>Select a Photo</Text> :
<Image style={styles.avatar} source={this.state.avatarSource} />
}

posted @ 2016-11-10 17:23  NOIP/NOI辅导  Views(158)  Comments(0)    收藏  举报