You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
32 lines
879 B
32 lines
879 B
import React from "react"; |
|
import styled from "styled-components"; |
|
import { BrowserRouter, Route, Switch } from "react-router-dom"; |
|
import Header from "./Header"; |
|
import Landing from "./Landing"; |
|
import Login from "./Login"; |
|
import Register from "./Register"; |
|
|
|
const Container = styled.div` |
|
text-align: center; |
|
`; |
|
|
|
export default function App() { |
|
return ( |
|
<Container> |
|
<BrowserRouter> |
|
<Header /> |
|
<Switch> |
|
<Route exact path="/login"> |
|
<Login /> |
|
</Route> |
|
<Route exact path="/register"> |
|
<Register /> |
|
</Route> |
|
<Route path="/"> |
|
<Landing /> |
|
</Route> |
|
</Switch> |
|
</BrowserRouter> |
|
</Container> |
|
); |
|
}
|
|
|