Join Slack
Powered by
Hello I'm trying to use import mui.material.Rad...
# react
d
Dmitriy Malayev
03/16/2023, 8:42 PM
Hello I'm trying to use import mui.material.RadioGroup and would like to hide and show a section based on if it's yes or no. How do I do that?
c
Christian H.
03/22/2023, 11:37 AM
Use the 'onChange' prop
https://mui.com/material-ui/react-radio-button/#controlled
inside that I would change a variable that was created with useState() and render the section you want to hide depending on that var
d
Dmitriy Malayev
03/22/2023, 7:09 PM
Thanks
5
Views
Open in Slack
Previous
Next