Skip to content

Commit 797d4f6

Browse files
John Doematejchalk
authored andcommitted
Initial commit
0 parents  commit 797d4f6

4 files changed

Lines changed: 32 additions & 0 deletions

File tree

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
node_modules/
2+
www/js
3+
package-lock.json

package.json

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{
2+
"name": "todo-app",
3+
"scripts": {
4+
"start": "esbuild src/app.jsx --bundle --outdir=www/js --servedir=www",
5+
"build": "esbuild src/app.jsx --bundle --outdir=www/js --minify"
6+
},
7+
"dependencies": {
8+
"react": "^18.2.0",
9+
"react-dom": "^18.2.0"
10+
},
11+
"devDependencies": {
12+
"esbuild": "^0.19.2"
13+
}
14+
}

src/app.jsx

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
import React from 'react';
2+
import ReactDOM from 'react-dom';
3+
4+
function App() {
5+
return <h1>hello world</h1>;
6+
}
7+
8+
ReactDOM.render(<App />, document.querySelector('#root'));

www/index.html

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
<!DOCTYPE html>
2+
<html>
3+
<body>
4+
<div id="root" />
5+
<script src="js/app.js"></script>
6+
</body>
7+
</html>

0 commit comments

Comments
 (0)