JSFiddle - React, Tailwind, and code Playground
HTML
<script src="https://threejs.org/build/three.min.js"></script>
<script src="https://pchen66.github.io/js/panolens/panolens.min.js"></script>
JavaScript
const panorama = new PANOLENS.ImagePanorama( 'https://pchen66.github.io/Panolens/asset/textures/equirectangular/field.jpg' );
const viewer = new PANOLENS.Viewer();
viewer.add( panorama );