Skip to content

Commit 08ff11a

Browse files
committed
pages
0 parents  commit 08ff11a

File tree

6 files changed

+5547
-0
lines changed

6 files changed

+5547
-0
lines changed

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
node_modules
2+
dist
3+
public
4+
.next

package.json

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
{
2+
"name": "app",
3+
"version": "1.0.0",
4+
"main": "index.js",
5+
"author": "Scott Moss <willscottmoss@gmail.com>",
6+
"license": "MIT",
7+
"dependencies": {
8+
"next": "^9.5.0",
9+
"react": "^16.13.1",
10+
"react-dom": "^16.13.1"
11+
},
12+
"scripts": {
13+
"dev": "next",
14+
"build": "next build",
15+
"start": "next start"
16+
}
17+
}

pages/index.jsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
import React from 'react'
2+
3+
export default () => <h1>Index Page</h1>

pages/notes/[id].jsx

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
import React from 'react'
2+
import { useRouter } from 'next/router'
3+
4+
export default () => {
5+
const router = useRouter()
6+
const { id }= router.query
7+
8+
return (
9+
<h1>Note: {id} </h1>
10+
)
11+
}

pages/notes/index.jsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
import React from 'react'
2+
3+
export default () => <h1>Notes</h1>

0 commit comments

Comments
 (0)