<Root> component as a possibly unnecessary part of a component namespace. #3434
dzianis-l
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi all,
Lot's of composite components like accordion, popover and even smaller ones like accessible-icon have the Root component which appears to be just a renamed export of a component itself.
Just to my personal understanding this feels new to how components used to be exported, however confusing.
E.g. this is the actual usage of let's say the AccessibleIcon component
However as so to get a grasp of right component API there is a necessity to drill down to their implementation.
Thus, a few questions but about the same thing
I'm not saying there is something wrong to be immediately fixed however I was wondering about alternatives here.
I would really appreciate elaboration on that approach and any further clarifying piece of feedback. Or just another points of view would be cool to hear.
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions