Add routing

This commit is contained in:
2025-02-17 21:23:38 +01:00
parent b6c7edecfd
commit 1cbcb8ce4c
11 changed files with 119 additions and 5 deletions
+13 -1
View File
@@ -1,7 +1,19 @@
import { Route, Routes } from 'react-router';
import Home from 'pages/Home';
import Languages from 'pages/Languages';
import Typing from 'pages/Typing';
import NotFound from 'pages/NotFound';
function App() {
return <Typing />;
return (
<Routes>
<Route index element={<Home />} />
<Route path='languages' element={<Languages />} />
<Route path='typing/:lang' element={<Typing />} />
<Route path='*' element={<NotFound />} />
</Routes>
);
}
export default App;