📅  最后修改于: 2022-03-11 15:03:43.859000             🧑  作者: Mango
代码示例2
renderElement(){
if(this.state.value == 'news')
return data;
return null;
}
render() {
return (
{ this.renderElement() }
)
}