Skip to content

Commit 0ee999a

Browse files
committed
Add demo app
1 parent d769eef commit 0ee999a

File tree

6 files changed

+6319
-1869
lines changed

6 files changed

+6319
-1869
lines changed

.gitignore

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,4 +107,9 @@ dist
107107
.DS_store
108108

109109
# VS code
110-
.vscode/
110+
.vscode/
111+
112+
# Parcel
113+
build/
114+
dist/
115+
.parcel-cache/

demo/App.tsx

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
import React from 'react'
2+
3+
const App = (): React.ReactElement => {
4+
return (
5+
<div>
6+
<p>Demo for React log hook.</p>
7+
<p>Please check the console for logs.</p>
8+
</div>
9+
)
10+
}
11+
12+
export default App

demo/index.html

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
<!DOCTYPE html>
2+
<html>
3+
<head>
4+
<title>Demo for React log hook</title>
5+
<meta charset="utf-8" />
6+
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/normalize.css" crossorigin="anonymous" referrerpolicy="no-referrer" />
7+
</head>
8+
<body>
9+
<div id="app"></div>
10+
<script type="module" src="index.tsx"></script>
11+
</body>
12+
</html>

demo/index.tsx

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 ReactDOM from 'react-dom'
3+
import App from './App'
4+
5+
ReactDOM.render(<App />, document.getElementById('app'))

0 commit comments

Comments
 (0)