JSFiddle - React, Tailwind, and code Playground

HTML

<div id="content">
    <p>This is the default html in this div</p>
</div>
<div id="icon1" class="icon">
    Icon 1
</div>
<div id="icon2" class="icon">
    Icon 2
</div>
<div id="icon3" class="icon">
    Icon 3
</div>
<div id="icon4" class="icon">
    Icon 4
</div>

CSS

body{
    padding: 0 5%;
}
#content{
    height:100px;
    text-align:center;
    border: solid 1px black;
}

.icon{
    float: left;
    width:50px;
    height:50px;
    border:solid 2px blue;
}

JavaScript

var content1 = '<p>This is some html that will fill the content window</p>';
    var content2 = '<p>This is more html that will fill the content window</p>';
    var content3 = '<p>This is other html that will fill the content window</p>';
    var content4 = '<p>This is even more html that will fill the content window</p>';

    $('#icon1').mouseover(function(){
        $('#content').html(content1);
        $('#content').css( "background-color", "red" );
    });
    $('#icon2').mouseover(function(){
        $('#content').html(content2);
        $('#content').css( "background-color", "orange" );
    });
    $('#icon3').mouseover(function(){
        $('#content').html(content3);
        $('#content').css( "background-color", "yellow" );
    });
    $('#icon4').mouseover(function(){
        $('#content').html(content4);
        $('#content').css( "background-color", "green" );
    });