JSFiddle - React, Tailwind, and code Playground

HTML

<!DOCTYPE html PUBLIC '-//W3C//DTD HTML 4.0//EN'
  >
<html>
  <head>
    <title>Setting the canvas background</title>
    <style type="text/css">
       
    </style>
  </head>
  <body>
    <p>My background is marble.</p>
  </body>
</html>

JavaScript

$("#toggle").click(function(){
    $("html").toggleClass("bg");
});