-
Notifications
You must be signed in to change notification settings - Fork 0
/
App.js
48 lines (42 loc) · 1.25 KB
/
App.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
import logo from './logo.svg';
import './App.css';
import { BrowserRouter as Router, Route, Switch } from 'react-router-dom';
import React from 'react';
import { Provider } from 'react-redux';
import store from './store';
import Home from './components/Home';
import MosqueManagement from './components/MosqueManagement';
import FuneralManagement from './components/FuneralManagement';
function App() {
return (
<>
<div className="App">
<header className="App-header">
<img src={logo} className="App-logo" alt="logo" />
<p>
Edit <code>src/App.js</code> and save to reload.
</p>
<a
className="App-link"
href="https://reactjs.org"
target="_blank"
rel="noopener noreferrer"
>
Learn React
</a>
</header>
</div>
<Provider store={store}>
<Router>
<Switch>
<Route path="/" exact component={Home} />
<Route path="/mosque-management" component={MosqueManagement} />
<Route path="/funeral-management" component={FuneralManagement} />
{/* ...more routes as necessary */}
</Switch>
</Router>
</Provider>
</>
);
}
export default App;