Initial commit
This commit is contained in:
4
.gitignore
vendored
Normal file
4
.gitignore
vendored
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
.next
|
||||||
|
.idea
|
||||||
|
.DS_Store
|
||||||
|
node_modules
|
16
package.json
Normal file
16
package.json
Normal file
@ -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"
|
||||||
|
}
|
||||||
|
}
|
10
pages/about.js
Normal file
10
pages/about.js
Normal file
@ -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>
|
||||||
|
);
|
||||||
|
}
|
13
pages/index.js
Normal file
13
pages/index.js
Normal file
@ -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;
|
Reference in New Issue
Block a user