JSFiddle - React, Tailwind, and code Playground

HTML

<pre id="result"></pre>

JavaScript

$("#result").append(2 +  40);