Describing the appearance of my table row:
<tr
onMouseEnter={() => {this.buttonIsHovered = true} }
onMouseLeave={() => {this.buttonIsHovered = false}}
className={this.buttonIsHovered ? 'hover' : null}>
The initial value of buttonIsHovered is false. The .hover class in CSS is defined as:
.hover {
background-color: aqua
}
Even though I've imported the CSS successfully, the hover effect doesn't seem to work. Does anyone have any suggestions? Your help is appreciated, thank you!