Interface: WhenProps<Shape>
Type parameters​
Name | Type |
---|---|
Shape | extends Object |
Properties​
children​
• children: ReactNode
Any node to be rendered when the predicate matches.
Defined in​
src/components/When/When.tsx:9
Methods​
predicate​
â–¸ predicate(value?
): boolean
Condition to be satisfied for the children
to be rendered.
If the value
prop was passed to its parent, then this predicate
will expose it as its first parameter.
Parameters​
Name | Type |
---|---|
value? | Shape |
Returns​
boolean
Defined in​
src/components/When/When.tsx:13