How to use zip.js in React

2.7k views Asked by At

I'm using zip.js to unzip .zip file. I know this library is useful and powerful, but I want to use it in React. The installation instruction is just for the general use. So how can I import the lib so that I can use it?

1

There are 1 answers

0
Akhil On BEST ANSWER

If you include it as mentioned in the documentation -

it should be available globally through the window.zip object, which you can access anywhere in a react application.