Skip to content

Instantly share code, notes, and snippets.

@steven-barkley
Created November 7, 2022 13:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save steven-barkley/66bfb79bf87ef4f6166eec79c2641e33 to your computer and use it in GitHub Desktop.
Save steven-barkley/66bfb79bf87ef4f6166eec79c2641e33 to your computer and use it in GitHub Desktop.
Hello World in React
<div id="root">
<!-- This element's contents will be replaced with your component. -->
</div>
const root = ReactDOM.createRoot(document.getElementById('root'));
root.render(<h1>Hello, world!</h1>);
<script src="https://unpkg.com/react/umd/react.development.js"></script>
<script src="https://unpkg.com/react-dom/umd/react-dom.development.js"></script>
@steven-barkley
Copy link
Author

Testing gist from Codecademy

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment