JSFiddle - React, Tailwind, and code Playground

HTML

<script src="https://player.vimeo.com/api/player.js"></script>
<div id="nl-video-player"></div>

<button id="fullscreen-btn">
Fullscreen
</button>

JavaScript

(function($) {

    var options = {
      id: 412972221,
      width: 640,
      controls: true
    };

    var player = new Vimeo.Player('nl-video-player', options);
    
    $("#fullscreen-btn").click(function(){
        player.requestFullscreen().then(function() {
          // the player entered fullscreen
        }).catch(function(error) {
          // an error occurred
        });
    });

})( jQuery );