JSFiddle - React, Tailwind, and code Playground
explaining es2015 functions
by jonchius
HTML
<div id="e">sum: </div>
<div id="f">product: </div>
Babel + JSX
let i = (x, y) => x + y;
let j = (x, y) => x * y;
let p = prompt("Enter an integer"); p = parseInt(p, 10);
let q = prompt("Enter another integer"); q = parseInt(q, 10);
$("#e").append(i(p,q));
$("#f").append(j(p,q));