JSFiddle - React, Tailwind, and code Playground

HTML

<button id='btn'>
add
</button>
<div id='newshit'></div>

JavaScript

btn.onclick = () => {

  let button = document.createElement('button');
  // button.id = "floating_panel_round";
  const num = Math.floor(Math.random() * 999999999)
  button.textContent = "я новая кнопка № " + num;

  button.addEventListener("click", function() {
    alert("это была кнопка № " + num)
  });

  newshit.appendChild(button);

}