JSFiddle - React, Tailwind, and code Playground

by cavo789

HTML

<a href="#" class="Boutton" id="1">Boutton A</a>
<a href="#" class="Boutton" id="2">Boutton B</a>
<a href="#" class="Boutton" id="3">Boutton C</a>

JavaScript

$(function() {
        $('.Boutton').click(function(){
            $('.Boutton').hide('slow');
            $('#' + $(this).val()).show('slow');
        });
    })