JSFiddle - React, Tailwind, and code Playground

by Yuriy Petrichenko

JavaScript

var x = [];
var b = {
names:'alex'
}
x.push(b);
console.log(x);