import React from 'react'; import { Formik } from 'formik'; import * as Yup from 'yup'; const SignupForm = () => { return ( <>

회원가입

{ setTimeout(() => { alert(JSON.stringify(values, null, 2)); setSubmitting(false); }, 400); }} > {formik => (
{formik.touched.userId && formik.errors.userId ? (
{formik.errors.userId}
) : null}
{formik.touched.password && formik.errors.password ? (
{formik.errors.password}
) : null}
{formik.touched.repassword && formik.errors.repassword ? (
{formik.errors.repassword}
) : null}
{formik.touched.userName && formik.errors.userName ? (
{formik.errors.userName}
) : null}
{formik.touched.userStudNum && formik.errors.userStudNum ? (
{formik.errors.userStudNum}
) : null}
)}
); } export default SignupForm;