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