import styles from "./signup.module.scss"; import { useState } from 'react'; const Signup = () => { const [userText, setUserState] = useState({ userID: '', userName: '', userBirthday: '', userMbnum: '', userPassword: '', userRePassword: '', }) const handleUserOnChange = (e) => { setUserState({ ...userText, [e.target.name]: e.target.value }) } const onlyNumber = (e) => { const text = e.target.value; if(text !== typeof(1)){ e.preventDefault(); alert("숫자만 입력해주세요"); } } const comparePassword = (userPassword, userRePassword, e) => { if (userPassword !== userRePassword) { return alert("비밀번호가 같지 않습니다.") } } return (
{console.log(userText)}
{/* 아이디 중복 확인 모달창 */}
) } export default Signup