JSFiddle - React, Tailwind, and code Playground
by nevkatz
HTML
<div id="root"></div>
JavaScript
function member(first,last) {
this.user = {
first:first,
last:last
}
}
function init() {
let nevin = new member('Nevin','Katz');
let root = document.getElementById('root');
root.textContent = nevin.user.first + ' ' + nevin.user.last;
}
init();