Hello I'm trying to use import mui.material.Rad...
# react
d
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
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
Thanks