If
The If component can be used to render its children conditionally.
import { If } from '@archibald/client';
<If active={ACTIVE}>CHILDREN</If>;
Props
The If component can receive following props:
| Property | Type | Description |
|---|---|---|
| active | number | boolean | string | Indicates if the children should be rendered or not. |
| children | ReactChild | Content to render. |