Router, link peldak
This commit is contained in:
11
react_alap/mai/src/20250124/About.jsx
Normal file
11
react_alap/mai/src/20250124/About.jsx
Normal file
@@ -0,0 +1,11 @@
|
||||
import React from "react";
|
||||
|
||||
function About(){
|
||||
return (
|
||||
<>
|
||||
ABOUT
|
||||
</>
|
||||
)
|
||||
}
|
||||
|
||||
export default About;
|
||||
11
react_alap/mai/src/20250124/Contact.jsx
Normal file
11
react_alap/mai/src/20250124/Contact.jsx
Normal file
@@ -0,0 +1,11 @@
|
||||
import React from "react";
|
||||
|
||||
function Contact(){
|
||||
return (
|
||||
<>
|
||||
Contact
|
||||
</>
|
||||
)
|
||||
}
|
||||
|
||||
export default Contact;
|
||||
14
react_alap/mai/src/20250124/Home.jsx
Normal file
14
react_alap/mai/src/20250124/Home.jsx
Normal 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;
|
||||
13
react_alap/mai/src/20250124/OSZTV/Fooldal.jsx
Normal file
13
react_alap/mai/src/20250124/OSZTV/Fooldal.jsx
Normal 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;
|
||||
13
react_alap/mai/src/20250124/OSZTV/Kaki.jsx
Normal file
13
react_alap/mai/src/20250124/OSZTV/Kaki.jsx
Normal 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;
|
||||
13
react_alap/mai/src/20250124/OSZTV/Urulek.jsx
Normal file
13
react_alap/mai/src/20250124/OSZTV/Urulek.jsx
Normal 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;
|
||||
Reference in New Issue
Block a user