ElemeFE / element-react

Element UI
https://elemefe.github.io/element-react/index
MIT License
2.83k stars 443 forks source link

Form validation not compatible with React hook useRef() #1088

Open yancey1204 opened 3 years ago

yancey1204 commented 3 years ago

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

ghost commented 2 years ago

Same problem here

ghost commented 2 years ago

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