JSFiddle - React, Tailwind, and code Playground

by denisz

HTML

<div>
   hello
</div>

<button id="getScreenshot">
  click
</button>

JavaScript

//navigator.mediaDevices.getUserMedia({ audio: false, video: true });

const btn = document.getElementById('getScreenshot').addEventListener('click', () => {
	alert(1111);

})