# Import { ZoomMtg } from '@zoomus/websdk'; causing React app to become unresponsive

**URL:** <https://devforum.zoom.us/t/import-zoommtg-from-zoomus-websdk-causing-react-app-to-become-unresponsive/17548>\
**Category:** Web\
**Created:** [May 13, 2020, 9:30pm UTC](https://devforum.zoom.us/t/import-zoommtg-from-zoomus-websdk-causing-react-app-to-become-unresponsive/17548 "2020-05-13T21:30:13Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![garettskaar](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/garettskaar/32/8402_2.png) [@garettskaar](https://devforum.zoom.us/u/garettskaar)\
**Post date:** [May 13, 2020, 9:30pm UTC](https://devforum.zoom.us/t/import-zoommtg-from-zoomus-websdk-causing-react-app-to-become-unresponsive/17548/1 "2020-05-13T21:30:13Z")

</div>

**Description**  
When I import ZoomMtg from ‘@zoomus/websdk’ my React App becomes unresponsive.

**Error**  
 ![image](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/2X/1/1fdcfbf381c828cd4bddacad9d88dfda7afb9be7.png)

**Update**  
A more detailed error that will appear after react is unresponsive for a few minutes

 ![reference_error](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/2X/2/29973bde7455e443ffd62b68d15f2522e4f18aca.png)

**Which version?**  
Latest webSDK 1.7.7

**To Reproduce**  
Steps to reproduce the behavior:

1. create-react-app
2. npm install @zoomus/websdk@1.7.7
3. import { ZoomMtg } from ‘@zoomus/websdk’; (inside my component file)
4. npm run start

**System**

- OS: Windows 10
- Browser: Chrome

**Additional context**  
As soon as I comment out the import { ZoomMtg } from ‘@zoomus/websdk’; the issue is resolved and my app will run again.

---

<div class="post-metadata">

**Author:** ![Zacht](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/zacht/32/8496_2.png) [@Zacht](https://devforum.zoom.us/u/Zacht)\
**Post date:** [May 14, 2020, 11:36pm UTC](https://devforum.zoom.us/t/import-zoommtg-from-zoomus-websdk-causing-react-app-to-become-unresponsive/17548/2 "2020-05-14T23:36:23Z")

</div>

Not sure what the correct solution is, but I solved this problem by including jquery in the index.html

`<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js"></script>`

---

<div class="post-metadata">

**Author:** ![garettskaar](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/garettskaar/32/8402_2.png) [@garettskaar](https://devforum.zoom.us/u/garettskaar)\
**Post date:** [May 15, 2020, 12:01am UTC](https://devforum.zoom.us/t/import-zoommtg-from-zoomus-websdk-causing-react-app-to-become-unresponsive/17548/3 "2020-05-15T00:01:20Z")

</div>

OK I got it working in a similar manner with this script source:  
`<script src="https://source.zoom.us/1.7.7/lib/vendor/jquery.min.js"></script> `

I wasn’t sure if this is the correct way to do it, but since that is what you got to work as well, I will move forward.

Thanks Zacht!

---

<div class="post-metadata">

**Author:** ![tommy](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/tommy/32/72769_2.png) [@tommy](https://devforum.zoom.us/u/tommy)\
**Post date:** [May 18, 2020, 11:45pm UTC](https://devforum.zoom.us/t/import-zoommtg-from-zoomus-websdk-causing-react-app-to-become-unresponsive/17548/4 "2020-05-18T23:45:36Z")

</div>

Hey @garettskaar, @Zacht,

Correct, you have to provide jQuery globally. We are working to not make this a requirement.

> **[@zoomus/websdk](https://www.npmjs.com/package/@zoomus/websdk#usage)**
>
> Zoom Web SDK

Thanks,  
Tommy

---

<div class="post-metadata">

**Author:** ![DeveloperBot](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/developerbot/32/12632_2.png) [@DeveloperBot](https://devforum.zoom.us/u/DeveloperBot)\
**Post date:** [August 21, 2020, 9:23pm UTC](https://devforum.zoom.us/t/import-zoommtg-from-zoomus-websdk-causing-react-app-to-become-unresponsive/17548/5 "2020-08-21T21:23:28Z")

</div>

Closed on August 21, 2020, 9:23pm UTC


