title: How to validate props passed to an anonymous component in Formik?
body: <pre><code>&lt;Formik
          initialValues={{
            specialist: '',
          }}
          onSubmit={(values, { setSubmitting }) =&gt; {
            alert(JSON.stringify(values));
            // setSubmitting(true);
          }}
          validationSchema={createAppointmentSchema}
        &gt;
          {props =&gt; {
            const {
              values,
              errors,
              isSubmitting,
              handleChange,
              handleSubmit,
              setFieldValue
            } = props;
            return (
              &lt;Form onSubmit={handleSubmit}&gt;
                &lt;FormItem&gt;
                  &lt;Span&gt;Seleccione un Especialista&lt;/Span&gt;
                &lt;/FormItem&gt;
              ....
              &lt;/Form&gt;
             );
           }
         }
  &lt;/Formik&gt;
  </code></pre>
  
  <p>In have a configuration to throw an error when props is not validated in my .eslintrc file. But when we use Formik, since it uses render-props pattern, so that it calls my component as a child and passing props to it. My question is how to validate the props that Formik passed to my component?</p>
  
  <pre><code>  151:13  error    'values' is missing in props validation          react/prop-types
    152:13  error    'errors' is missing in props validation          react/prop-types
    153:13  error    'isSubmitting' is missing in props validation    react/prop-types
    154:13  error    'handleChange' is missing in props validation    react/prop-types
    155:13  error    'handleSubmit' is missing in props validation    react/prop-types
    156:13  error    'setFieldValue' is missing in props validation   react/prop-types
  </code></pre>