Name | Props | Description |
---|---|---|
Maybe | when | Renders it's children only if when is true |
Either | when | If when is true it renders the first child, otherwise it renders the second |
Flip | when | Flips the order of the first two children |
Reverse | when | Reverses the order of all its children |
Order | sort | Re-orders the children in the order provided through sort |
One | at | Renders only the child at the specified index |
Some | at | Renders only the children at the specified indices if they exist |
Constant | * | Will render only once, never updating the state of it's children (shouldComponentUpdate -> false) |
Pure | * | Will re-render only when the passed props have changed (PureComponent) |
Just | * | Just renders it's children, nothing special, good for dynamic rendering |
Nothing | * | Renders nothing |
Conditionals
A set of components to achieve conditional constructs
Contribute on Github! Edit this section.