I've been searching for a proper guidance for integrating lightgallery.js library into my application, but after several hours I did not find any solutions. Since I'm using React, I don't want to mix it with JQuery.

I've stumbled across many similar questions like this one, but since all of them are using JQuery, I can't use their solutions.

Also, I've found react-lightgallery package (React wrapper for lightgallery.js), but it does not include video support yet.

In the lightgallery.js documentation, there is the installation guidance. After completing all of the steps, importing lightgallery.js and trying to print it (as suggested here by the library owner), empty object is being shown.

What would be the best solution for this? Are there any good alternatives?


0 Answers