Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- withFormik({
- // ...
- validate: createValidator({
- title: ['required', rules.minLength(3), rules.maxLength(400), 'commonText'],
- price: ['required', 'price', price => price === 1000 ? 'Price can not be 1000' : null]
- }),
- // ...
- })
Add Comment
Please, Sign In to add comment