21 lines
502 B
TypeScript
21 lines
502 B
TypeScript
import { BrowserRouter, Route, Routes } from "react-router-dom";
|
|
import Home from "./pages/home";
|
|
import Dashboard from "./pages/dashboard";
|
|
import { Provider } from "react-redux";
|
|
import store from "./store";
|
|
|
|
function App() {
|
|
return (
|
|
<Provider store={store}>
|
|
<BrowserRouter>
|
|
<Routes>
|
|
<Route path="/" element={<Home />} />
|
|
<Route path="/dashboard" element={<Dashboard />} />
|
|
</Routes>
|
|
</BrowserRouter>
|
|
</Provider>
|
|
);
|
|
}
|
|
|
|
export default App;
|