commit
93dc65b529
6 changed files with 4639 additions and 0 deletions
@ -0,0 +1,4 @@ |
||||
.next |
||||
.idea |
||||
.DS_Store |
||||
node_modules |
@ -0,0 +1,16 @@ |
||||
{ |
||||
"name": "roadmap-next", |
||||
"version": "1.0.0", |
||||
"main": "index.js", |
||||
"license": "proprietary", |
||||
"scripts": { |
||||
"dev": "next", |
||||
"build": "next build", |
||||
"start": "next start" |
||||
}, |
||||
"dependencies": { |
||||
"next": "^9.0.4", |
||||
"react": "^16.9.0", |
||||
"react-dom": "^16.9.0" |
||||
} |
||||
} |
@ -0,0 +1,10 @@ |
||||
import React from 'react'; |
||||
import Link from 'next/link'; |
||||
|
||||
export default function About() { |
||||
return ( |
||||
<div> |
||||
<p>This is the about page</p> |
||||
</div> |
||||
); |
||||
} |
@ -0,0 +1,13 @@ |
||||
import React from 'react'; |
||||
import Link from 'next/link'; |
||||
|
||||
const Index = () => ( |
||||
<div> |
||||
<Link href="/about"> |
||||
<a title="About Page">About Page</a> |
||||
</Link> |
||||
<p>Hello Next.js</p> |
||||
</div> |
||||
); |
||||
|
||||
export default Index; |
Loading…
Reference in new issue