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
Currently, we use cloneElement to pass props to Radio in RadioGroup. This approach leads to Radio cannot be wrapped by other components or created from HOC.
This thread has been automatically locked because it has not had recent activity. Please open a new issue for related bugs and link to relevant comments in this thread.
lockbot
locked as resolved and limited conversation to collaborators
May 1, 2018
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Currently, we use cloneElement to pass props to
Radio
inRadioGroup
. This approach leads toRadio
cannot be wrapped by other components or created from HOC.For example, following code won't work:
By replacing
cloneElement
withcontext
,Radio
can be free to compose.Related issue: #5165
The text was updated successfully, but these errors were encountered: