JSFiddle - React, Tailwind, and code Playground
JavaScript
// will be dynamic properties in use case
var tValue = 500
var tName = "donuts"
var tArray = [2, 4, 9, 55];
window.onload = (event) => {
let x;
// trying to set variables will throw error cannot set properties of undefned
x.tree = tValue;
x.header = tName;
x.time = tArray;
}