App.js 572 Bytes
import React,{useState, useEffect} from 'react';
import { Route, Redirect, withRouter, Switch} from 'react-router-dom';
import { Home, Html, Mathcha, Tikz, Login} from './Container';
import {isauth} from './Container/Login';
//import {ConnectedRouter} from 'connected-react-router';


const authentication = () => {}


function App() {  
  return (
    <div>
      <Switch>
        <Route exact path="/" component={Login}/>
        <Route path="/Home" component={Home}/>
      </Switch>
    </div>
  );
}
//history를 쓰는 경우는 Link
export default withRouter(App);