Install pannellum-react
npm i pannellum-react@1.3.6
pnpm add pannellum-react@1.3.6
paste this in code & change ImageURL
<Pannellum
width="100%"
height="100vh"
autoLoad={true}
compass={true}
hfov={110}
mouseZoom={false}
showControls={false}
image={ImageURL}
// @ts-ignore
ref={ImageRef}
></Pannellum>