T

ComponentMatch

Picks an element: a component name, matched against its displayName or name through memo and forwardRef wrappers (or a host type such as RCTView), or a predicate on the element.

type ComponentMatch<P = TreeNode> = string | ((element: React.ReactElement<P>) => PredicateResult)