Router, link peldak

This commit is contained in:
szabomarton
2025-01-24 09:18:54 +01:00
parent 9c5ca86086
commit 9a0dccc10f
10 changed files with 157 additions and 3 deletions

View File

@@ -0,0 +1,11 @@
import React from "react";
function About(){
return (
<>
ABOUT
</>
)
}
export default About;

View File

@@ -0,0 +1,11 @@
import React from "react";
function Contact(){
return (
<>
Contact
</>
)
}
export default Contact;

View File

@@ -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;

View File

@@ -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;

View File

@@ -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;

View File

@@ -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;