form icon indicating copy to clipboard operation
form copied to clipboard

Customized Form Controls cannot be Function Component with Hooks

Open Terryand opened this issue 5 years ago • 4 comments

image

I just created a customized form control by function component with hooks. But find it will be not work. Maybe using Context API ranther than Ref API will be better in future.

Terryand avatar Jul 17 '19 08:07 Terryand

me too

TonyLiuYan avatar Aug 23 '19 03:08 TonyLiuYan

same

Glinduff avatar Aug 23 '19 20:08 Glinduff

+1

ssehacker avatar Nov 01 '19 08:11 ssehacker

+1 but you can use useRef instead it

WechatIMG210

lgy1159 avatar Jan 05 '20 10:01 lgy1159