This commit is contained in:
landaiqing
2024-04-12 20:14:27 +08:00
commit 18d15ddd17
28 changed files with 4136 additions and 0 deletions

14
src/views/404/404.tsx Normal file
View File

@@ -0,0 +1,14 @@
import {useNavigate} from 'react-router-dom';
export default () => {
const navigate = useNavigate();
const goBack = () => {
navigate(-1);
};
return (
<>
<h1>About Page</h1>
<button onClick={goBack}></button>
</>
);
};

14
src/views/about/About.tsx Normal file
View File

@@ -0,0 +1,14 @@
import {useNavigate} from 'react-router-dom';
export default () => {
const navigate = useNavigate();
const goBack = () => {
navigate(-1);
};
return (
<>
<h1>About Page</h1>
<button onClick={goBack}></button>
</>
);
};

10
src/views/home/Home.tsx Normal file
View File

@@ -0,0 +1,10 @@
import { Link } from 'react-router-dom';
export default () => {
return (
<>
<h1>Home Page</h1>
<Link to="/about"></Link>
</>
);
};