-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathApp.js
More file actions
21 lines (19 loc) · 645 Bytes
/
App.js
File metadata and controls
21 lines (19 loc) · 645 Bytes
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 "./App.css";
import { Switch, Route } from "react-router-dom";
import { Login } from "./pages/login/Login";
import { Register } from "./pages/register/Register";
import { NotFound } from "./components/NotFound";
import { ListContainer } from "./pages/list/ListContainer";
function App() {
return (
<Switch>
<Route exact path="/" component={Login} />
<Route exact path="/login" component={Login} />
<Route path="/register" component={Register} />
<Route exact path="/list" component={ListContainer} />
<Route component={NotFound} />
</Switch>
);
}
export default App;