Skip to main content

Function: usePatternMatch

Const usePatternMatch<Shape>(value?): Object

Type parameters

NameType
Shapeextends Object

Parameters

NameType
value?Shape

Returns

Object

NameType
ExactComponentType<ExactProps<Shape>>
MatchComponentType<MatchProps<Shape>>
Otherwise(props: OtherwiseProps) => Element
SwitchComponentType<SwitchProps<Shape>>
WhenComponentType<WhenProps<Shape>>
WithComponentType<WithProps<Shape>>

Defined in

src/utils/pattern-match.ts:44