: 메인페이지 (로그인 유무 및 초기 계정인지 확인)
: state - isLoggedIn, init, useEffect()
: 로그인 유무에 따른 페이지 라우팅
: component - <AppRouter />, <Routes>
: 로그인이 확인되면 메인페이지(App.js)에 띄울 컴포넌트
: 로그인이 안된 상태에서 메인페이지(App.js)에 띄울 컴포넌트 (제일 처음 마주칠 페이지)
: state, function - email, password, newAccount, error, onChange(), onSubmit()
: firebase - createUserWithEmailAndPassword, signInWithEmailAndPassword
: firebase의 auth기능을 사용하기 위한 파일
: authService = firebase.auth()
→ authService로 다른 파일에서 firebase auth기능 호출 가능
: Auth.js에서 createUserWithEmailAndPassword, signInWithEmailAndPassword
을 사용하게 해줌
useEffect()
사용함으로써, 메인페이지 접속 시 <AppRouter />
로 접속 가능