JSFiddle - React, Tailwind, and code Playground
HTML
<video id="video">
<source src="/movie.mp4" />
</video>
<a href="#" onclick="removeControls();">Remove Controls</a>
JavaScript
video.setAttribute("controls","controls");
removeControls = function() {
var video = document.getElementById('video');
video.removeAttribute("controls");
}