IK
Size: a a a
IK
Y
IK
Y
IK
Y
IK
Y
IK
IK
Y
IK
IK
С
ИР
yup.object().shape({
a: yup.string().when(['b'], {
is: b => !b,
then: yup.string().required()
}),
b: yup.string().when(['a'], {
is: a => !a,
then: yup.string().required()
})
}, ['a', 'b'])
С
yup.object().shape({
a: yup.string().when(['b'], {
is: b => !b,
then: yup.string().required()
}),
b: yup.string().when(['a'], {
is: a => !a,
then: yup.string().required()
})
}, ['a', 'b'])
VS
G
DB