Created
April 3, 2022 09:16
-
-
Save gokhancerk/2fecca8f9aa0aea211806566a4a56ca1 to your computer and use it in GitHub Desktop.
to add a React component to an existing HTML page.
This file contains 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
<html> | |
<body> | |
<div id="app"></div> | |
</body> | |
<script | |
src="https://unpkg.com/react@18/umd/react.development.js" | |
crossorigin | |
></script> | |
<script | |
src="https://unpkg.com/react-dom@18/umd/react-dom.development.js" | |
crossorigin | |
></script> | |
<script src="https://unpkg.com/@babel/standalone/babel.min.js"></script> | |
<script type="text/jsx" src="index.js"> | |
// const header = document.createElement("h1"); | |
// const headerContent = document.createTextNode("Awesome Conf"); | |
// header.appendChild(headerContent); | |
// app.appendChild(header); | |
</script> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment