Question:
I want to change a componentArea
‘s background color when move link hover on it.Area
is a self-created component. There is some errors if use it in the styled.div
:<Area backgroundColor="blue">
and change color for it?Answer:
Without seeing more of the code for the other components, this may not work for you. One approach you could take is styling aLink
for your YellowLink
component where you define the styles of that link.For example:
If you have better answer, please add a comment about this, thank you!