{ this.state.showMyComponent ? <MyComponent /> : null } { this.state.showMyComponent && <MyComponent /> }