Is there a way to activate the onClick and onHover CSS animations for the ReactJS button component below?
I attempted to use ref = {input => (this.inputElement = input)}, but I only see the animation when clicking the button.
<td>
{this.state.buttons.slice(0, 4).map(btn => (
<button
onClick={() => this.handleClick(btn)}
key={btn}
className={this.getBadgeClasses(btn)}
>
{btn}
</button>
))}
</td>
It is important that I am able to trigger both animations using a keyboard event.