yup_Library
정의
- 선언형 입력 검증 라이브러리
사용법
//let yup = require('yup'); 
//또는
import * as yup from 'yup';
const schema = yup.object().shape({
  name: yup.string().required(),
  age: yup
  	.number()
  	.required()
  	.positive()
  	.integer(),
  email: yup
  	.string()
  	.required('')
  	.email('올바른 이메일 주소를 입력해주세요'),
 website: yup.string().email(),
 password: yup
  	.string()
  	.required('')
  	.min(8, '비밀번호는 8자 이상 입력해주세요'),
 createOn: yup.date().default(function(){
   return new Date();
 }),
});
const LoginPage = () => {
	const methods = useForm({
      mode: 'onChange',
      resolver: yupResolver(schema)
    });
  
Author And Source
이 문제에 관하여(yup_Library), 우리는 이곳에서 더 많은 자료를 발견하고 링크를 클릭하여 보았다 https://velog.io/@suminllll/yupLibrary저자 귀속: 원작자 정보가 원작자 URL에 포함되어 있으며 저작권은 원작자 소유입니다.
                                
                                
                                
                                
                                
                                우수한 개발자 콘텐츠 발견에 전념
                                (Collection and Share based on the CC Protocol.)