import React, { useState, useEffect, useRef } from 'react'; import Nav1 from '../Components/MainNav'; import Nav2 from '../Components/SubNav'; import { Form, Col, Container, Button, Row } from 'react-bootstrap' import { Link , Redirect} from 'react-router-dom' function Login(authenticated,login,location) { const [id, setId] = useState(""); const [password,setPassword]= useState(""); const handleClick =() => { try { Login({id,password}) } catch(e) { alert("Failed to login") setId("") setPassword("") } } return (

Login

User Name setId(value)} className="mx-sm-3" size="sm" placeholder="User Name"> Password setPassword(value)} className="mx-sm-3" size="sm" placeholder="Password">
SignUp?
) } export default Login