Replies: 1 comment 2 replies
-
We'll have a think on this. If done I think it would make sense to go all-in across the board, so other widgets would deserve similar changes. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
A common pattern with React components is to provide any child component of a list-like component as an attribute of the parent component.
Before
After
Pros:
Cons:
Option = OptionList.Option
)Option
widget withOption*
messagesOf course,
OptionList
is one of a few list-like components and the others might benefit from this change as well. Additionally, there are other child components likeSeparator
.I'm willing to help implement this :)
Beta Was this translation helpful? Give feedback.
All reactions