import "./loginAndSignUpPage.css"; import { useState } from 'react'; import Header from './header'; import Footer from "./Footer"; function LoginAndSignUpPage(){ const toggleLogin=(event:React.MouseEvent)=>{event.preventDefault(); setSignup(!signup)}; const [signup, setSignup]= useState(false); return(
{signup? "Sign Up": "Login"}
icon username
{signup?
icon email
: ""}
icon password
{signup? "Already have an account?": "Don't have an account yet?"} Click here {signup? "login.": "to sign up."}
); } export default LoginAndSignUpPage