📅  最后修改于: 2022-03-11 15:04:07.809000             🧑  作者: Mango
const MySubComponent = (props) => {
if (props.display) {
return This text is displayed
}
}
class MyComponent extends React.Component {
render() {
return (
)
}
}