Skip to content

Commit 21fdd11

Browse files
committed
Add initail files for parcel react boilerplate
1 parent b087ad1 commit 21fdd11

File tree

6 files changed

+5454
-0
lines changed

6 files changed

+5454
-0
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
dist
2+
3+
node_modules
4+
5+
.cache
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="UTF-8">
5+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
6+
<meta http-equiv="X-UA-Compatible" content="ie=edge">
7+
<title>Document</title>
8+
</head>
9+
<body>
10+
<div id="root"></div>
11+
<script src="./src/index.js"></script>
12+
</body>
13+
</html>
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{
2+
"name": "parcel-react-boilerplate",
3+
"version": "1.0.0",
4+
"main": "index.js",
5+
"license": "MIT",
6+
"scripts": {
7+
"start": "parcel index.html"
8+
},
9+
"dependencies": {
10+
"parcel-bundler": "^1.12.4",
11+
"react": "^16.12.0",
12+
"react-dom": "^16.12.0"
13+
}
14+
}
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
import React from 'react'
2+
3+
export default function App() {
4+
return (
5+
<div>
6+
Hello World
7+
</div>
8+
)
9+
}
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
import React from 'react';
2+
import {render} from 'react-dom';
3+
import App from './components/App';
4+
5+
render(<App />, document.getElementById('root'))

0 commit comments

Comments
 (0)