mirror of
https://github.com/Mastermindzh/react-starter-kit.git
synced 2025-08-23 17:44:52 +02:00
Moved examples into example directory
Moved routes to separate file Used route constants
This commit is contained in:
19
src/App.tsx
19
src/App.tsx
@@ -1,26 +1,13 @@
|
||||
import { BrowserRouter, Route, Routes } from "react-router-dom";
|
||||
import { AboutContainer } from "./features/about/About";
|
||||
import { CounterContainer } from "./features/counter/Counter";
|
||||
import { HomeContainer } from "./features/home/Home";
|
||||
import { BrowserRouter } from "react-router-dom";
|
||||
import { Navbar } from "./infrastructure/navbar/Navbar";
|
||||
import { AppRoutes } from "./Routes";
|
||||
|
||||
function App() {
|
||||
return (
|
||||
<BrowserRouter>
|
||||
<div className="App">
|
||||
<Navbar />
|
||||
<Routes>
|
||||
<Route path="/" element={<HomeContainer />} />
|
||||
<Route path="/about" element={<AboutContainer />} />
|
||||
<Route path="/counter" element={<CounterContainer />} />
|
||||
{/* <Route index element={<Home />} /> */}
|
||||
{/* <Route path="teams" element={<Teams />}>
|
||||
<Route path=":teamId" element={<Team />} />
|
||||
<Route path="new" element={<NewTeamForm />} />
|
||||
<Route index element={<LeagueStandings />} />
|
||||
</Route> */}
|
||||
{/* </Route> */}
|
||||
</Routes>
|
||||
<AppRoutes />
|
||||
</div>
|
||||
</BrowserRouter>
|
||||
);
|
||||
|
Reference in New Issue
Block a user