# Please init meeting first! Error when adding div id="zmmtg-root" inside a React component

**URL:** <https://devforum.zoom.us/t/please-init-meeting-first-error-when-adding-div-id-zmmtg-root-inside-a-react-component/29598>\
**Category:** Web\
**Created:** [September 9, 2020, 7:59am UTC](https://devforum.zoom.us/t/please-init-meeting-first-error-when-adding-div-id-zmmtg-root-inside-a-react-component/29598 "2020-09-09T07:59:33Z")\
**Posts on this page:** 1\
**Showing post:** 8

<div class="post-metadata">

**Author:** ![mehdi.rouis](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/mehdi.rouis/32/16685_2.png) [@mehdi.rouis](https://devforum.zoom.us/u/mehdi.rouis)\
**Post date:** [October 6, 2020, 3:10pm UTC](https://devforum.zoom.us/t/please-init-meeting-first-error-when-adding-div-id-zmmtg-root-inside-a-react-component/29598/8 "2020-10-06T15:10:34Z")

</div>

Hello,  
I had exactly the same problem.  
I found a solution with Javascript ( angular project )  
You have to create a div with id “zoom-content” into where you want and then into your javascript or component:  
const zoomMeetingDiv = document.getElementById(“zmmtg-root”);  
const zoomContent = this.document.getElementById(‘zoom-content’);  
zoomContent.appendChild(zoomMeetingDiv);  
When you appendChild an existing node, it will be moved without a creation.

Have a nice day.

---

_[View the full topic](https://devforum.zoom.us/t/please-init-meeting-first-error-when-adding-div-id-zmmtg-root-inside-a-react-component/29598)._
