JSFiddle - React, Tailwind, and code Playground

JavaScript

function Status(type) {
  this.type = type;
}


var race = new Status('race');
var status = race;

console.log(race);
console.log(status);