JSFiddle - React, Tailwind, and code Playground
HTML
<button>Change color</button>
JavaScript
$('button').on('click', function () {
$('body').css('backgroundColor', 'red');
});
<button>Change color</button>
$('button').on('click', function () {
$('body').css('backgroundColor', 'red');
});