element-react icon indicating copy to clipboard operation
element-react copied to clipboard

Form validation not compatible with React hook useRef()

Open yancey1204 opened this issue 5 years ago • 2 comments

Version

element-react 1.4.34

Component

Form

Description

When using const refForm = React.useRef(), I can't call refForm.validate because it's not existing on refForm property.

Solution

Please use React hook to rewrite this project

yancey1204 avatar Feb 04 '21 02:02 yancey1204

Same problem here

ghost avatar Apr 29 '22 09:04 ghost

A solution could be this https://react-hook-form.com/get-started

ghost avatar Apr 29 '22 09:04 ghost