JSFiddle - React, Tailwind, and code Playground

HTML

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

JavaScript

var el = document.getElementById('test'),
    a = 1,
    b = 0;

a>b && (el.innerHTML = "True") || (el.innerHTML = "False");