Skip to content

Commit

Permalink
Compiling, Bundling, and a Closer Look at JSX
Browse files Browse the repository at this point in the history
  • Loading branch information
15Dkatz committed Oct 19, 2022
1 parent a1de8ca commit bae8de1
Show file tree
Hide file tree
Showing 14 changed files with 31,370 additions and 4 deletions.
Binary file added starter/.parcel-cache/5d102dff0a3f4e7e
Binary file not shown.
Binary file added starter/.parcel-cache/9a9c7011435fc402
Binary file not shown.
Binary file added starter/.parcel-cache/aec2b732b9ba41d5
Binary file not shown.
Binary file added starter/.parcel-cache/data.mdb
Binary file not shown.
Binary file added starter/.parcel-cache/ec7a7e8ddee0d9ca
Binary file not shown.
2 changes: 2 additions & 0 deletions starter/.parcel-cache/f6c2aacc42e8f766.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
106156760
1666157966141551000
Binary file added starter/.parcel-cache/lock.mdb
Binary file not shown.
27,229 changes: 27,229 additions & 0 deletions starter/dist/index.3d214d75.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions starter/dist/index.3d214d75.js.map

Large diffs are not rendered by default.

10 changes: 10 additions & 0 deletions starter/dist/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<!DOCTYPE html>
<html>
<head>
<title>Starter React</title>
</head>
<body>
<div id="root"></div>
<script src="/index.3d214d75.js" defer=""></script>
</body>
</html>
4 changes: 1 addition & 3 deletions starter/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@
</head>
<body>
<div id="root"></div>
<script crossorigin src="https://unpkg.com/react@18/umd/react.development.js"></script>
<script crossorigin src="https://unpkg.com/react-dom@18/umd/react-dom.development.js"></script>
<script src="index.js"></script>
<script src="index.js" type="module"></script>
</body>
</html>
5 changes: 4 additions & 1 deletion starter/index.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
import React from 'react';
import ReactDOM from 'react-dom/client';

console.log('hi');

const element = React.createElement('div', null, 'React element!');
const element = <div>React element with JSX!</div>;

const root = ReactDOM.createRoot(document.getElementById('root'));
root.render(element);
Loading

0 comments on commit bae8de1

Please sign in to comment.