mirror of
https://github.com/hazemKrimi/touch-programming.git
synced 2026-05-02 02:30:26 +00:00
Add routing
This commit is contained in:
+13
-1
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user