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 handleOnInput = (e) => { // if (el.value.length > e.target.attributes.docu) { // el.value // = el.value.substr(0, maxlength); // } // } const comparePassword = () => { if (userText.userPassword !== userText.userRePassword) { return alert("비밀번호가 같지 않습니다.") } } return (
{console.log(userText)}
{/* 아이디 중복 확인 모달창 */}
) } export default Signup