Di Wang
Di Wang

Reputation: 457

How to use zip.js in React

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?

Upvotes: 1

Views: 2808

Answers (1)

Akhil
Akhil

Reputation: 629

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.

Upvotes: 3

Related Questions