Type '{ ref: MutableRefObject | undefined>; }' is not assignable to type 'IntrinsicAttributes & { children?: ReactNode; }'

后端 未结 0 757
忘了有多久
忘了有多久 2020-12-13 00:50

I try to put a ref on a functional component but a have this error.

my code :

const DownloadPdf: React.FC = () => {
  const componentRef = useRef<         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题