JSFiddle - React, Tailwind, and code Playground

by Qwerty_Wasd

HTML

<div id="test" onclick></div>

JavaScript

console.log(test.onclick !== null);