JSFiddle - React, Tailwind, and code Playground

HTML

<button>Change color</button>

JavaScript

$('button').on('click', function () {
    $('body').css('backgroundColor', 'red');
});