Predicates
A predicate is a function for querying against a React element's tree. The following factories can be used for generating predicate clauses.
whereKey()
#
whereKey(value: React.Key | React.Key[]): Predicate
Find all elements where their key
matches the provided value or values.
whereProps()
#
whereProps(props: { [name: string]: unknown }): Predicate
Find all elements in common with the provided props, regardless of component type
.