-
-
Notifications
You must be signed in to change notification settings - Fork 9.4k
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
forwardRef elements use displayName if available #6222
forwardRef elements use displayName if available #6222
Conversation
render the displayName for the component name if a forwardRef element provides it. Resolves storybookjs#5974
Codecov Report
@@ Coverage Diff @@
## next #6222 +/- ##
=======================================
Coverage ? 38.13%
=======================================
Files ? 645
Lines ? 9644
Branches ? 355
=======================================
Hits ? 3678
Misses ? 5911
Partials ? 55
Continue to review full report at Codecov.
|
Codecov Report
@@ Coverage Diff @@
## next #6222 +/- ##
=======================================
Coverage 38.29% 38.29%
=======================================
Files 648 648
Lines 9838 9838
Branches 387 387
=======================================
Hits 3767 3767
Misses 6011 6011
Partials 60 60
Continue to review full report at Codecov.
|
forwardRef elements use displayName if available
Issue: #5974
render the displayName for the component name if a forwardRef element
provides it.
What I did
Node
component's check forforwardRef
to render original componentdisplayName
if present.forwardRef
component in kitchen sink app withforwardRef
element with adisplayName
How to test