Created
January 6, 2023 18:26
-
-
Save cindywu/a8fa623b2e8a7728420e6b8524bacb31 to your computer and use it in GitHub Desktop.
nextjs-foundations.html
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
<!-- index.html --> | |
<html> | |
<body> | |
<div> | |
<div id="app"></div> | |
<script type="text/javascript"> | |
const app = document.getElementById('app') | |
const header = document.createElement('h1') | |
const headerContent = document.createTextNode( | |
'Develop. Preview. Ship. 🚀' | |
) | |
header.appendChild(headerContent) | |
app.appendChild(header) | |
</script> | |
</div> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
https://nextjs.org/learn/foundations/from-javascript-to-react/updating-ui-with-javascript