<IF condition={this.state.showSecret} fallback="YOU CANNOT SEE!">
<h3>And here it is - a secret key</h3>
</IF>
name | type | required | default | description |
---|---|---|---|---|
children | element, string | ✓ | 条件判断子元素 | |
condition | bool | ✓ | 条件判断语句 | |
fallback | element, string | 不满足条件渲染的展示 |