JSFiddle - React, Tailwind, and code Playground

HTML

<input class="teams" type="button" value="Teams" />

JavaScript

$(".teams").click(function () {
        $("#container2").toggle();
        //$("#teams").prop("value", "Hide Teams");

        var $this = $(this);
        if ($this.hasClass('teams')) {
            $this.attr('value', 'Show Teams');
        } else {
            $this.attr('value', 'Hide Teams');
        }
    });