Retrieves a component from a module by searching its source code for a specific match. Can search for normal components as well as those wrapped in React.memo or React.forwardRef.
React.memo
React.forwardRef
The expected type of the component to be returned.
The module to search within.
The pattern to match the source against.
The first component that matches the given pattern, or undefined if no match is found.
undefined
Retrieves a component from a module by searching its source code for a specific match. Can search for normal components as well as those wrapped in
React.memoorReact.forwardRef.