JSFiddle - React, Tailwind, and code Playground

by raulFuentes

HTML

<!DOCTYPE html>
<html>
<head>
<body>
<div class="carre" onclick="buttonClique()">
</div>
</body>
</head>
</html>

CSS

.carre{
  background-color: blue;
  width: 100px;
  height: 100px;
}

.carre:hover {
  cursor: pointer;
}

JavaScript

function buttonClique() {
alert("Quelqu'un à cliqué sur le carré bleu")
}