You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What version of the Carbon Design System are you using?
carbon-components-react@npm:7.31.0
What did you expect to happen?
I've created a wrapper component for RadioButton to support our design addition of description text & then spent half an hour scratching my head as to why my component is not rendered.
I'd consider this to be quite an ugly anti-pattern.
If you need to insist on using the only right component, why aren't you using data to render (an array of records as a prop for RadioButtonGroup) instead of remapping children.
Additional information
The text was updated successfully, but these errors were encountered:
Detailed description
carbon-components-react@npm:7.31.0
I've created a wrapper component for
RadioButton
to support our design addition of description text & then spent half an hour scratching my head as to why my component is not rendered.It's because you are rendering your version of
RadioButton
regardless of what is given as children.I'd consider this to be quite an ugly anti-pattern.
If you need to insist on using the only right component, why aren't you using data to render (an array of records as a prop for
RadioButtonGroup
) instead of remapping children.Additional information
The text was updated successfully, but these errors were encountered: