tbeg-web/src/App.tsx

21 lines
502 B
TypeScript
Raw Permalink Normal View History

2022-03-11 04:39:30 +08:00
import { BrowserRouter, Route, Routes } from "react-router-dom";
import Home from "./pages/home";
import Dashboard from "./pages/dashboard";
2022-03-21 04:29:58 +08:00
import { Provider } from "react-redux";
import store from "./store";
2022-03-09 00:43:05 +08:00
function App() {
return (
2022-03-21 04:29:58 +08:00
<Provider store={store}>
<BrowserRouter>
<Routes>
<Route path="/" element={<Home />} />
<Route path="/dashboard" element={<Dashboard />} />
</Routes>
</BrowserRouter>
</Provider>
2022-03-11 04:39:30 +08:00
);
2022-03-09 00:43:05 +08:00
}
2022-03-11 04:39:30 +08:00
export default App;