I was trying to reuse this vanilla HTML-CSS radio buttons codepen in a React component.
I have got the buttons to change colour on being selected but the “worm” div
s are not working as expected. See this codepen for my work.
I thought the div
s were getting rendered before the keyframe animations start and I removed the useState but the “worm” is still not moving.
Please feel free to advise me about better React coding standards as well.