Yup + useFormik - conditional required field based on some parameter

前端 未结 0 1628
梦毁少年i
梦毁少年i 2021-01-14 15:59

I have a validation schema object:

SCHEMA = object().shape({
  ...
  someField: string().required(validation_keys.required),
  ...
});

I am u

相关标签:
回答
  • 消灭零回复
提交回复
热议问题