Form 是一个 HTML <form> 元素的小封装,它自动挂接到 Formik 的 handleSubmit 和 handleReset 中。所有其他 props 都直接传递到 DOM 节点。
¥Form is a small wrapper around an HTML <form> element that automatically hooks into Formik's handleSubmit and handleReset. All other props are passed directly through to the DOM node.
// so...<Form />// is identical to this...<form onReset={formikProps.handleReset} onSubmit={formikProps.handleSubmit} {...props} />