ql
17 строк · 483.0 Байт
1import React from 'react';
2import { BrowserRouter as Router, Route, Routes } from 'react-router-dom';
3import Home from "../Home";
4import Repository from "../Repository";
5
6const App: React.FC = () => {
7return (
8<Router>
9<Routes>
10<Route path="/" element={<Home />} />
11<Route path="/repository/:owner/:name" element={<Repository />} />
12</Routes>
13</Router>
14);
15};
16
17export default App;