What is the best way to handle hovers in styled-components. I have a wrapping element that when hovered will reveal a button.
I could implement some state on the com
This solution worked for me:
const ContentB = styled.span` opacity: 0; &:hover { opacity: 1; } ` const ContentA = styled.span` &:hover ~ ${ContentB} { opacity: 1; } `