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(137)  Comments(0Edit  收藏  举报