Reputation: 457
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
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