import React from 'react'; import { Formik } from 'formik'; import * as Yup from 'yup'; import { Link } from "react-router-dom"; const LoginForm = () => { 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}
회원가입
)}
); } export default LoginForm;