1.0.2 • Published 6 years ago
@twilson63/react-cond v1.0.2
Cond
React Conditional Component a declarative way to branch logic during render:
<Cond test={componentState}>
<Cond.State equals={'LOADING'} component={LoadingView} />
<Cond.State equals={'READY'} component={ShowView} />
<Cond.State equals={'ERROR'} component={ErrorView} />
</Cond>