Created
February 22, 2024 11:05
-
-
Save tomorgan/23824a95a600165a087996173b0f2ab8 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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