-
Notifications
You must be signed in to change notification settings - Fork 8
/
App.js
21 lines (19 loc) · 642 Bytes
/
App.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
import React from "react";
import {Switch, Route} from "react-router-dom";
import Main from "./Main";
import Form from "./Form";
import Contribute from "./Contribute";
import PrivacyTerms from "./PrivacyTerms";
const App = () => {
return (
<Switch>
{" "}
{/* The Switch decides which component to show based on the current URL.*/}
<Route exact path="/" component={Main}></Route>
<Route exact path="/form" component={Form}></Route>
<Route exact path="/contribute" component={Contribute}></Route>
<Route exact path="/legal" component={PrivacyTerms}></Route>
</Switch>
);
};
export default App;