Skip to content

Instantly share code, notes, and snippets.

@baharev
Created November 21, 2022 08:40
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 baharev/5fb1464b75b7a9cf729dbfa807d0bd93 to your computer and use it in GitHub Desktop.
Save baharev/5fb1464b75b7a9cf729dbfa807d0bd93 to your computer and use it in GitHub Desktop.
react hello world esm
<div id="root"></div>
import React from "https://esm.sh/react@18.2.0";
import ReactDOM from "https://esm.sh/react-dom@18.2.0";
const root = ReactDOM.createRoot(document.getElementById("root"));
root.render(
<h1>Hello, world!</h1>
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment