1.0.2 • Published 2 years ago
@apass/if-condition v1.0.2
If Condition ⁉️⁉️⁉️
If-Condition component
import { If, Then, ElseIf, Else } from '@apass/if-condition'
Usage example
<If condition={true} />
<Then>Then</Then>
<ElseIf condition={true}>ElseIf</ElseIf>
<Else>Else</Else>
</If>
// Or
<If condition={true}>
Content
</If>