Skip to content

Instantly share code, notes, and snippets.

@tomorgan
Created February 22, 2024 11:05
Show Gist options
  • Select an option

  • Save tomorgan/23824a95a600165a087996173b0f2ab8 to your computer and use it in GitHub Desktop.

Select an option

Save tomorgan/23824a95a600165a087996173b0f2ab8 to your computer and use it in GitHub Desktop.
import React, {useEffect } from 'react';
function App() {
  useEffect(() => {
    const script = document.createElement('script');
    script.type = 'text/javascript';
    script.innerHTML = `
  YOUR WIDGET SCRIPT HERE ( remove the <script></script> tags at the top and bottom )
    `;
    document.body.appendChild(script);
  }, []);
  return (
      <div></div>
  );
}
export default App;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment