이전에 커뮤니티 기능을 위해 MySQL과 리액트를 연동하는 방법을 포스팅했다.이제 가장 먼저 구현해볼 것은 로그인 기능이다.React(클라이언트)에서 입력한 ID와 PW를 Server로 넘겨 SQL 쿼리문으로 해당 ID, PW를 가진 회원이 있는지 확인하고 결과를 반환하면 된다. 최상위 컴포넌트에 로그인 유저 정보 Context 생성//App.jsximport { useState, createContext } from 'react';export const LoginUserInfoContext=createContext();// 로그인 할 유저의 초기 상태const loginUserInit={ userId:'', nickname:'', email:'', car:'', isLogin..