Router, link peldak
This commit is contained in:
1 parent
9c5ca86086
commit
9a0dccc10f
10 files changed
+157
-3
No files matched your search
@@ -0,0 +1,11 @@
|
||||
import React from "react";
|
||||
|
||||
function About(){
|
||||
return (
|
||||
<>
|
||||
ABOUT
|
||||
</>
|
||||
)
|
||||
}
|
||||
|
||||
export default About;
|
||||
@@ -0,0 +1,11 @@
|
||||
import React from "react";
|
||||
|
||||
function Contact(){
|
||||
return (
|
||||
<>
|
||||
Contact
|
||||
</>
|
||||
)
|
||||
}
|
||||
|
||||
export default Contact;
|
||||
@@ -0,0 +1,14 @@
|
||||
import React from "react";
|
||||
import { Link } from "react-router-dom";
|
||||
|
||||
function Home(){
|
||||
return (
|
||||
<>
|
||||
<h1>Kezdőoldal</h1>
|
||||
<Link to="about">Információkhoz link</Link>
|
||||
<Link to="contact">Elérhetőség</Link>
|
||||
</>
|
||||
)
|
||||
}
|
||||
|
||||
export default Home;
|
||||
@@ -0,0 +1,13 @@
|
||||
import React from "react";
|
||||
import { Link } from "react-router-dom";
|
||||
|
||||
function Fooldal(){
|
||||
return (
|
||||
<>
|
||||
<Link to="kaki">AZ OSZTV szar</Link>
|
||||
<Link to="urulek">AZ OSZTV ürülék</Link>
|
||||
</>
|
||||
)
|
||||
}
|
||||
|
||||
export default Fooldal;
|
||||
@@ -0,0 +1,13 @@
|
||||
import React from "react";
|
||||
import { Link } from "react-router-dom";
|
||||
|
||||
function Kaki(){
|
||||
return (
|
||||
<>
|
||||
<Link to="/">Vissza a főoldalra</Link>
|
||||
<Link to="./../urulek">AZ OSZTV ürülék</Link>
|
||||
</>
|
||||
)
|
||||
}
|
||||
|
||||
export default Kaki;
|
||||
@@ -0,0 +1,13 @@
|
||||
import React from "react";
|
||||
import { Link } from "react-router-dom";
|
||||
|
||||
function Urulek(){
|
||||
return (
|
||||
<>
|
||||
<Link to="/">Vissza a főoldalra</Link>
|
||||
<Link to="./../kaki">AZ OSZTV kaki</Link>
|
||||
</>
|
||||
)
|
||||
}
|
||||
|
||||
export default Urulek;
|
||||
Reference in new issue
Block a user