Can I use this in my React.js application?
I see there is node module package of this library, but not sure if I can use in React.
You need to include the minified pannellum.js script in the page and the pannellum.css style sheet. I have no idea how this is normally done in React, since I've never used it.
@mpetroff Thank you for your reply.
I resolved this by importing pannellum scripts and css in the head of public/index.html.
After that, I can access window.pannellum.viewer in any components.
You can use also my fork
npm install --save github:saidmoya12/pannellum
then import
import pannellum from "pannellum";
...
let viewer = pannellum.viewer('panellum', [config]);
I hope will be useful
Most helpful comment
You can use also my fork
npm install --save github:saidmoya12/pannellumthen import
I hope will be useful