📜  如何从服务器签入 formik - 无论代码示例

📅  最后修改于: 2022-03-11 14:57:36.199000             🧑  作者: Mango

代码示例1
registrationEmail: yup.string().email('Invalid email').test('Unique Email','Email already in use', function(value){return new Promise((resolve, reject) => {axios.get('http://localhost:5000/users/register', value)})})