JSFiddle - React, Tailwind, and code Playground

by nevkatz

HTML

<div id="test" class="one two three">
Nevin
</div>

JavaScript

let el = document.getElementById('test');

let arr = Array.from(el.classList);

console.log(arr);
let r = arr.find(x => x.includes('o'));

let obj = {};

obj.el = el;

obj.el.textContent = 'Katz';