I am working on Reactjs,I have list of questions(using loop) with radio button and i want to add class on radio button which clicked,But right now unable to add class, Here is my current code
<FormControlLabel
key={`radio${item.id}${count + 2}`}
value={item.id.toString()}
control={<Radio color="primary" required={item.required} />}
label={getChoice(item)}
onClick={myfunct}
/>
))}
And in juqery i am using following code
const myfunct = event => {
$(this).addClass('my-selected-item');
}