Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[new] [react-is] add `typeOfElementType`, extracted from `typeOf` #15349

wants to merge 1 commit into
base: master


None yet
3 participants
Copy link

ljharb commented Apr 8, 2019

By extracting this functionality, I'll be able to simplify the logic in enzyme here by comparing directly to the type rather than needing to make a fake element.


This comment has been minimized.

Copy link

eps1lon commented Apr 8, 2019

Prior art: #12932

This is already implemented for memo and lazy since ReactIs.isMemo(MemoComponent) returns true rather than ReactIs.isMemo(<MemoComponent />). See #14546 for more details about inconsistencies in the API between memo, lazy and forwardRef.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.