📅  最后修改于: 2022-03-11 15:02:17.796000             🧑  作者: Mango
renderSwitch(param) {
switch(param) {
case 'foo':
return 'bar';
default:
return 'foo';
}
}
render() {
return (
// removed for brevity
{this.renderSwitch(param)}
// removed for brevity
);
}