📜  功能组件反应 - TypeScript 代码示例

📅  最后修改于: 2022-03-11 14:48:29.544000             🧑  作者: Mango

代码示例4
const MySubComponent = (props) => {
    if (props.display) {
        return 

This text is displayed

} } class MyComponent extends React.Component { render() { return ( ) } }