App.js 597 Bytes
Newer Older
Spark's avatar
layout    
Spark committed
1
2
3
4
import React from 'react';
import { BrowserRouter as Router, Route } from 'react-router-dom';
import './App.css';
import Home from './pages/Home';
Spark's avatar
Spark committed
5
6
import Oauth from './utils/Oauth';
import SignupPage from './pages/SignupPage';
Spark's avatar
Spark committed
7
import LoginPage from './pages/LoginPage';
Spark's avatar
layout    
Spark committed
8
9
10


function App() {
Spark's avatar
Spark committed
11

Spark's avatar
layout    
Spark committed
12
13
14
  return (
    <Router>
      <>
Spark's avatar
Spark committed
15
16
        <Route exact path='/' component={Home} />
        <Route exact path='/signup' component={SignupPage} />
Spark's avatar
Spark committed
17
        <Route exact path='/login' component={LoginPage} />
Spark's avatar
Spark committed
18
        <Route path='/oauth' component={Oauth} />
Spark's avatar
layout    
Spark committed
19
20
      </>
    </Router>
Spark's avatar
Spark committed
21

Spark's avatar
layout    
Spark committed
22
23
24
25
  );
}

export default App;