Props
Name | Type | Default | Description |
---|---|---|---|
when | bool | true | If true , reverse the order. If false , do nothing. |
import { Reverse } from 'flowr';
Reverse
will reverse the order of all it's children when the predicate is true or none provided.
A
B
C
// for predicate === true
C
B
A
// for predicate === false:
A
B
C
Name | Type | Default | Description |
---|---|---|---|
when | bool | true | If true , reverse the order. If false , do nothing. |
Contribute on Github! Edit this section.