While many examples of Yup utilize the shape method, I have found the documentation to be somewhat unclear on why this approach is preferred and what exactly it accomplishes.
Could someone clarify the distinction between a schema constructed with Yup.object({...})
versus Yup.object().shape({...})
?