File tree Expand file tree Collapse file tree 6 files changed +5547
-0
lines changed Expand file tree Collapse file tree 6 files changed +5547
-0
lines changed Original file line number Diff line number Diff line change 1+ node_modules
2+ dist
3+ public
4+ .next
Original file line number Diff line number Diff line change 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+ }
Original file line number Diff line number Diff line change 1+ import React from 'react'
2+
3+ export default ( ) => < h1 > Index Page</ h1 >
Original file line number Diff line number Diff line change 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+ }
Original file line number Diff line number Diff line change 1+ import React from 'react'
2+
3+ export default ( ) => < h1 > Notes</ h1 >
You can’t perform that action at this time.
0 commit comments