I am trying to build a 3way radio button.I used this codepen which is behaving as expected in the codepen. But when i put it in my react code it doesnt behave as expected. W