Skip to content

Instantly share code, notes, and snippets.

@jittarao
Last active May 10, 2020 19:46
Show Gist options
  • Save jittarao/260e95a11f1a5ca0527328b992cd5436 to your computer and use it in GitHub Desktop.
Save jittarao/260e95a11f1a5ca0527328b992cd5436 to your computer and use it in GitHub Desktop.
import React from "react";
import { useEffect } from "react";
export default function App() {
useEffect(() => {
const script = document.createElement("script");
script.src = "https://meeting-widget.getgist.com/";
script.async = true;
document.body.appendChild(script);
return () => {
document.body.removeChild(script);
};
}, []);
return (
<div className="App">
<h1>Embed Gist Meetings in React App</h1>
<div
className="meetings-iframe-container"
data-src="https://getgist.me/jittarao/connect?embed=true"
/>
</div>
);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment