Skip to content

Instantly share code, notes, and snippets.

@gholz60
Created December 15, 2023 21:36
Show Gist options
  • Save gholz60/bb07ab025c97b508c656eaacb62a84bb to your computer and use it in GitHub Desktop.
Save gholz60/bb07ab025c97b508c656eaacb62a84bb to your computer and use it in GitHub Desktop.

Revisions

  1. gholz60 created this gist Dec 15, 2023.
    7 changes: 7 additions & 0 deletions hello-world-in-react.markdown
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,7 @@
    Hello World in React
    --------------------


    A [Pen](https://codepen.io/gaearon/pen/MjrdWg) by [Dan Abramov](https://codepen.io/gaearon) on [CodePen](https://codepen.io).

    [License](https://codepen.io/license/pen/MjrdWg).
    3 changes: 3 additions & 0 deletions index.html
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,3 @@
    <div id="root">
    <!-- This element's contents will be replaced with your component. -->
    </div>
    2 changes: 2 additions & 0 deletions script.babel
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,2 @@
    const root = ReactDOM.createRoot(document.getElementById('root'));
    root.render(<h1>Hello, world!</h1>);
    2 changes: 2 additions & 0 deletions scripts
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,2 @@
    <script src="https://unpkg.com/react/umd/react.development.js"></script>
    <script src="https://unpkg.com/react-dom/umd/react-dom.development.js"></script>