JSFiddle - React, Tailwind, and code Playground

HTML

<button class="submit">Button 1</submit>

CSS

button.submit {
    background-color: #4098d3;
    color: #fff;}

button.submit:hover {
        background-color: #515758;
        cursor: pointer; 
        -webkit-transition: background 0.5s linear;
        -moz-transition: background 0.5s linear;
        -ms-transition: background 0.5s linear;
        -o-transition: background 0.5s linear;
        transition: background 0.5s linear;
}

JavaScript

// All we need now is the two solid color backgrounds