Skip to content
Snippets Groups Projects
App.js 594 B
Newer Older
import "./App.css";
LEE's avatar
LEE committed
import {Routes, Route } from 'react-router-dom';
import Header from "./Header.js";
import Main from "./Main.js";
LEE's avatar
LEE committed
import Search from "./Search.js";
import GoogleLoginButton from "./GoogleLoginButton.js";

function App() {
LEE's avatar
LEE committed
  return(
    <div className="App">
      <Header/>
      <Routes>
        <Route path="/" element={<Main/>}></Route>
LEE's avatar
LEE committed
        <Route path="/search" element={<Search/>}></Route>
LEE's avatar
LEE committed
    {/* <Route path="/postwrite" element={<PostWrite/>}></Route> */}
      </Routes>
      <GoogleLoginButton/>
      {/* <Footer/> */}
    </div>
    );
}

export default App;